summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into oracle-servicename-optionpr/152Sławek Ehlert2015-01-2743-963/+3430
|\
| * - fix this test for py3kMike Bayer2015-01-261-1/+1
| |
| * - additional test adjustments for pypy / psycopg2cffi. ThisMike Bayer2015-01-264-41/+49
| | | | | | | | | | | | | | | | | | | | consists mainly of adjusting fixtures to ensure connections are closed explicitly. psycopg2cffi also handles unicode bind parameter names differently than psycopg2, and seems to possibly have a little less control over floating point values at least in one test which is marked as a "fail", though will see if it runs differently on linux than osx.. - changelog for psycopg2cffi, fixes #3052
| * 78-char widthShaun Stanworth2015-01-262-2/+4
| |
| * Added psycopg2cffi dialectShaun Stanworth2015-01-266-5/+12
| |
| * Merge branch 'bb_issue_3262' of https://bitbucket.org/xflr6/sqlalchemyMike Bayer2015-01-261-0/+13
| |\
| | * warn on duplicate polymorphic_identitySebastian Bank2014-12-041-0/+13
| | |
| * | Merge remote-tracking branch 'origin/pr/150'Mike Bayer2015-01-261-1/+2
| |\ \
| | * | Report the type of unexpected expression objectspr/150Ryan P. Kelly2014-11-201-1/+2
| | | |
| * | | - Added new user-space accessors for viewing transaction isolationMike Bayer2015-01-202-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | levels; :meth:`.Connection.get_isolation_level`, :attr:`.Connection.default_isolation_level`. - enhance documentation inter-linkage between new accessors, existing isolation_level parameters, as well as in the dialect-level methods which should be fully covered by Engine/Connection level APIs now.
| * | | formattingMike Bayer2015-01-201-27/+30
| | | |
| * | | - restore r611883ffb35ca6664649f6328ae8 with additional fixes and an ↵Mike Bayer2015-01-191-4/+37
| | | | | | | | | | | | | | | | | | | | | | | | additional test that is much more specific to #1326
| * | | - reverse the last commit temporarily as it breaks all the polymorphic casesMike Bayer2015-01-191-19/+4
| | | |
| * | | - The primary :class:`.Mapper` of a :class:`.Query` is now passed to theMike Bayer2015-01-191-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | :meth:`.Session.get_bind` method when calling upon :meth:`.Query.count`, :meth:`.Query.update`, :meth:`.Query.delete`, as well as queries against mapped columns, :obj:`.column_property` objects, and SQL functions and expressions derived from mapped columns. This allows sessions that rely upon either customized :meth:`.Session.get_bind` schemes or "bound" metadata to work in all relevant cases. fixes #3227 fixes #3242 fixes #1326
| * | | - testsMike Bayer2015-01-191-0/+63
| | | |
| * | | - further fixes and even better tests for this blockMike Bayer2015-01-191-1/+27
| | | |
| * | | - fix another issue from rf49c367ef, add another testMike Bayer2015-01-181-1/+30
| | | |
| * | | - rework assertsql system, fixes #3293Mike Bayer2015-01-186-161/+242
| | | |
| * | | - fix a regression from ref #3178, where dialects that don't actually supportMike Bayer2015-01-171-3/+65
| | | | | | | | | | | | | | | | | | | | sane multi rowcount (e.g. pyodbc) would fail on multirow update. add a test that mocks this breakage into plain dialects
| * | | - add an exclusion here that helps with the case of 3rd partyMike Bayer2015-01-171-0/+1
| | | | | | | | | | | | | | | | test suite redefining an existing test in test_suite
| * | | - Custom dialects that implement :class:`.GenericTypeCompiler` canMike Bayer2015-01-161-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | now be constructed such that the visit methods receive an indication of the owning expression object, if any. Any visit method that accepts keyword arguments (e.g. ``**kw``) will in most cases receive a keyword argument ``type_expression``, referring to the expression object that the type is contained within. For columns in DDL, the dialect's compiler class may need to alter its ``get_column_specification()`` method to support this as well. The ``UserDefinedType.get_col_spec()`` method will also receive ``type_expression`` if it provides ``**kw`` in its argument signature. fixes #3074
| * | | - Fixed bug where Postgresql dialect would fail to render anMike Bayer2015-01-161-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | expression in an :class:`.Index` that did not correspond directly to a table-bound column; typically when a :func:`.text` construct was one of the expressions within the index; or could misinterpret the list of expressions if one or more of them were such an expression. fixes #3174
| * | | - The "wildcard" loader options, in particular the one set up byMike Bayer2015-01-131-2/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the :func:`.orm.load_only` option to cover all attributes not explicitly mentioned, now takes into account the superclasses of a given entity, if that entity is mapped with inheritance mapping, so that attribute names within the superclasses are also omitted from the load. Additionally, the polymorphic discriminator column is unconditionally included in the list, just in the same way that primary key columns are, so that even with load_only() set up, polymorphic loading of subtypes continues to function correctly. fixes #3287
| * | | - The multi-values version of :meth:`.Insert.values` has beenMike Bayer2015-01-132-29/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | repaired to work more usefully with tables that have Python- side default values and/or functions, as well as server-side defaults. The feature will now work with a dialect that uses "positional" parameters; a Python callable will also be invoked individually for each row just as is the case with an "executemany" style invocation; a server- side default column will no longer implicitly receive the value explicitly specified for the first row, instead refusing to invoke without an explicit value. fixes #3288
| * | | repair formattingMike Bayer2015-01-121-1/+4
| | | |
| * | | Add native_enum flag to Enum's repr() resultDimitris Theodorou2015-01-121-2/+2
| | | | | | | | | | | | | | | | Needed for alembic autogenerate rendering.
| * | | - add a close hereMike Bayer2015-01-061-0/+1
| | | |
| * | | - Fixed bug where if an exception were thrown at the start of aMike Bayer2015-01-051-3/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | :class:`.Query` before it fetched results, particularly when row processors can't be formed, the cursor would stay open with results pending and not actually be closed. This is typically only an issue on an interpreter like Pypy where the cursor isn't immediately GC'ed, and can in some circumstances lead to transactions/ locks being open longer than is desirable. fixes #3285
| * | | - more callcountsMike Bayer2015-01-051-7/+16
| | | | | | | | | | | | | | | | - add the platform key to the error output
| * | | - this is passing, no idea whyMike Bayer2015-01-041-3/+0
| | | |
| * | | - callcountsMike Bayer2015-01-041-21/+21
| | | | | | | | | | | | | | | | - this needs to be serializable and isn't high volume so just whack the slots
| * | | - fix test for new eventsMike Bayer2015-01-041-1/+1
| | | |
| * | | - scale back _Dispatch and _JoinedDispatcher to use a __getitem__ schemeMike Bayer2015-01-042-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | to start up listener collections; this pulls the overhead off of construction and makes performance much like the descriptor version, while still allowing slots. Fix up some profiles.
| * | | - wip - start factoring events so that we aren't using descriptors for dispatch,Mike Bayer2015-01-041-15/+6
| | | | | | | | | | | | | | | | allowing us to move to __slots__
| * | | - start trying to move things into __slots__. This seems to reduce theslotsMike Bayer2015-01-041-7/+9
| | | | | | | | | | | | | | | | | | | | size of the many per-column objects we're hitting, but somehow the overall memory is hardly being reduced at all in initial testing
| * | | - The :class:`.mysql.SET` type has been overhauled to no longerMike Bayer2015-01-031-8/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assume that the empty string, or a set with a single empty string value, is in fact a set with a single empty string; instead, this is by default treated as the empty set. In order to handle persistence of a :class:`.mysql.SET` that actually wants to include the blank value ``''`` as a legitimate value, a new bitwise operational mode is added which is enabled by the :paramref:`.mysql.SET.retrieve_as_bitwise` flag, which will persist and retrieve values unambiguously using their bitflag positioning. Storage and retrieval of unicode values for driver configurations that aren't converting unicode natively is also repaired. fixes #3283
| * | | - clean up SET testsMike Bayer2015-01-031-95/+135
| | | |
| * | | - restate sort_tables in terms of a more fine grainedMike Bayer2015-01-013-36/+256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sort_tables_and_constraints function. - The DDL generation system of :meth:`.MetaData.create_all` and :meth:`.Metadata.drop_all` has been enhanced to in most cases automatically handle the case of mutually dependent foreign key constraints; the need for the :paramref:`.ForeignKeyConstraint.use_alter` flag is greatly reduced. The system also works for constraints which aren't given a name up front; only in the case of DROP is a name required for at least one of the constraints involved in the cycle. fixes #3282
| * | | - Added a new accessor :attr:`.Table.foreign_key_constraints`Mike Bayer2015-01-011-0/+40
| | | | | | | | | | | | | | | | | | | | to complement the :attr:`.Table.foreign_keys` collection, as well as :attr:`.ForeignKeyConstraint.referred_table`.
| * | | - Fixed bug where using a :class:`.TypeDecorator` that implementedMike Bayer2014-12-191-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | a type that was also a :class:`.TypeDecorator` would fail with Python's "Cannot create a consistent method resolution order (MRO)" error, when any kind of SQL comparison expression were used against an object using this type.
| * | | - rework sqlite FK and unique constraint system to combine both PRAGMAMike Bayer2014-12-131-123/+291
| | | | | | | | | | | | | | | | | | | | | | | | and regexp parsing of SQL in order to form a complete picture of constraints + their names. fixes #3244 fixes #3261 - factor various PRAGMA work to be centralized into one call
| * | | - add test_get_unnamed_unique_constraints to SQLite reflection testsJon Nelson2014-12-131-0/+18
| | | |
| * | | - Added new method :meth:`.Session.invalidate`, functions similarlyMike Bayer2014-12-122-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to :meth:`.Session.close`, except also calls :meth:`.Connection.invalidate` on all connections, guaranteeing that they will not be returned to the connection pool. This is useful in situations e.g. dealing with gevent timeouts when it is not safe to use the connection further, even for rollbacks. references #3258
| * | | - update zoomarkMike Bayer2014-12-121-6/+6
| | | |
| * | | - rework the handle error on connect tests from test_parsconnect whereMike Bayer2014-12-102-236/+245
| | | | | | | | | | | | | | | | they don't really belong into a new suite in test_execute
| * | | - identify another spot where _handle_dbapi_error() needs to do somethingMike Bayer2014-12-081-0/+28
| | | | | | | | | | | | | | | | | | | | differently for the case where it is called in an already-invalidated state; don't call upon self.connection
| * | | - simplify the "noconnection" error handling, settingMike Bayer2014-12-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | _handle_dbapi_exception_noconnection() to only invoke in the case of raw_connection() in the constructor of Connection. in all other cases the Connection proceeds with _handle_dbapi_exception() including revalidate.
| * | | - autoinc here for oracleMike Bayer2014-12-081-1/+3
| | | |
| * | | - force the _has_events flag to True on engines, so thatMike Bayer2014-12-081-54/+21
| | | | | | | | | | | | | | | | | | | | profiling is more predictable - restore the profiling from before this change
| * | | - some profile changes likely due to the change in event listeningticket_3100Mike Bayer2014-12-082-23/+54
| | | | | | | | | | | | | | | | on engines