summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Correcting options name from withoids to with_oidsMalik Diarra2014-08-171-3/+3
|
* quoting tablespace name in create table command in postgresql dialectMalik Diarra2014-08-171-0/+5
|
* Adding oids and on_commit table optionsMalik Diarra2014-08-171-0/+22
|
* Adding a tablespace options for postgresql create tableMalik Diarra2014-08-171-0/+6
|
* - rework profiling, zoomark tests into single tests so thatMike Bayer2014-08-164-677/+330
| | | | they can be used under xdist
* Merge remote-tracking branch 'origin/pr/125' into pr125Mike Bayer2014-08-163-72/+56
|\
| * two_phase_recover, COMMIT PREPARED in transactionTony Locke2014-08-022-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In test/engine/test_transaction/test_two_phase_recover(), a COMMIT PREPARED is issued while in a transaction. This causes an error, and a prepared transaction is left hanging around which causes the subsequent test to hang. I've altered the test to execute the offending query with autocommit=true, then when it gets to the COMMIT PRPARED it can go ahead. There's another complication for pg8000 because its tpc_recover() method started a transaction if one wasn't already in progress. I've decided that this is incorrect behaviour and so from pg8000-1.9.13 this method never starts or stops a transaction.
| * PEP8 tidy of test/engine/test_reconnectTony Locke2014-08-021-58/+52
| |
| * With pg8000-1.9.13 passes engine/test_reconnectTony Locke2014-08-021-10/+0
| | | | | | | | | | | | | | The pg8000 dialect checks the text of the exception to determine if the connection is closed. I'd (recklessly!) changed the text of the exception in a recent version of the pg8000 driver adding capitalization and a full stop. I've changed it back now so all works.
* | - don't add the parent attach event within _on_table_attachMike Bayer2014-08-151-0/+14
| | | | | | | | | | if we already have a table; this prevents reentrant calls and we aren't supporting columns/etc being moved around between different parents
* | - other test fixesMike Bayer2014-08-151-7/+9
| |
* | - UPDATE statements can now be batched within an ORM flushMike Bayer2014-08-142-22/+18
| | | | | | | | | | | | | | | | | | | | into more performant executemany() call, similarly to how INSERT statements can be batched; this will be invoked within flush to the degree that subsequent UPDATE statements for the same mapping and table involve the identical columns within the VALUES clause, as well as that no VALUES-level SQL expressions are embedded. - some other inlinings within persistence.py
* | pep8Mike Bayer2014-08-141-486/+530
| |
* | - The string keys that are used to determine the columns impactedMike Bayer2014-08-141-3/+45
| | | | | | | | | | | | | | | | | | for an INSERT or UPDATE are now sorted when they contribute towards the "compiled cache" cache key. These keys were previously not deterministically ordered, meaning the same statement could be cached multiple times on equivalent keys, costing both in terms of memory as well as performance. fixes #3165
* | - Removing (or adding) an event listener at the same time that the eventMike Bayer2014-08-141-0/+34
| | | | | | | | | | | | | | | | | | is being run itself, either from inside the listener or from a concurrent thread, now raises a RuntimeError, as the collection used is now an instance of ``colletions.deque()`` and does not support changes while being iterated. Previously, a plain Python list was used where removal from inside the event itself would produce silent failures. fixes #3163
* | pep8Mike Bayer2014-08-141-31/+46
| |
* | - The ``info`` parameter has been added to the constructor forMike Bayer2014-08-132-1/+68
| | | | | | | | | | | | | | | | | | | | | | :class:`.SynonymProperty` and :class:`.ComparableProperty`. - The ``info`` parameter has been added as a constructor argument to all schema constructs including :class:`.MetaData`, :class:`.Index`, :class:`.ForeignKey`, :class:`.ForeignKeyConstraint`, :class:`.UniqueConstraint`, :class:`.PrimaryKeyConstraint`, :class:`.CheckConstraint`. fixes #2963
* | - The :meth:`.InspectionAttr.info` collection is now moved down toMike Bayer2014-08-131-0/+18
| | | | | | | | | | | | | | | | :class:`.InspectionAttr`, where in addition to being available on all :class:`.MapperProperty` objects, it is also now available on hybrid properties, association proxies, when accessed via :attr:`.Mapper.all_orm_descriptors`. fixes #2971
* | Merge branch 'pr126'Mike Bayer2014-08-131-0/+66
|\ \ | | | | | | | | | | | | Conflicts: doc/build/changelog/changelog_10.rst
| * | - public method name is get_enums()Mike Bayer2014-08-131-12/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - return a list of dicts like other methods do - don't combine 'schema' with 'name', leave them separate - support '*' argument so that we can retrieve cross-schema if needed - remove "conn" argument - use bound parameters for 'schema' in SQL - order by schema, name, label - adapt _load_enums changes to column reflection - changelog - module docs for get_enums() - add drop of enums to --dropfirst
| * | Public inspector method to load enum listpr/126Ilya Pekelny2014-08-081-0/+21
| | | | | | | | | | | | | | | Provide opportunity to get enums list via an inspector instance public interface.
* | | Providing an autoload_with info automatically sets autoload to TrueMalik Diarra2014-08-091-0/+16
| | |
* | | - add tests for the savepoint recipeMike Bayer2014-08-091-0/+78
| | |
* | | - oursql doesn't pass this consistently, not sure what the issue isMike Bayer2014-08-081-6/+12
| | |
* | | oursql seems to handle this? unclear, might be dependent on mysql versionMike Bayer2014-08-081-7/+1
| | |
* | | - turn off the testing reaper here, that's the source of the leaksMike Bayer2014-08-081-12/+14
|/ / | | | | | | | | when we are running with pydist, and even when we are running without it in fact...
* | - take out the iterator approach here as it does not support concurrent accessMike Bayer2014-08-071-8/+9
| |
* | -Fixed bug where Postgresql JSON type was not able to persist orMike Bayer2014-08-071-5/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | otherwise render a SQL NULL column value, rather than a JSON-encoded ``'null'``. To support this case, changes are as follows: * The value :func:`.null` can now be specified, which will always result in a NULL value resulting in the statement. * A new parameter :paramref:`.JSON.none_as_null` is added, which when True indicates that the Python ``None`` value should be peristed as SQL NULL, rather than JSON-encoded ``'null'``. Retrival of NULL as None is also repaired for DBAPIs other than psycopg2, namely pg8000. fixes #3159
* | - Fixed bug in CTE where ``literal_binds`` compiler argument would notMike Bayer2014-08-021-0/+38
|/ | | | | | be always be correctly propagated when one CTE referred to another aliased CTE in a statement. Fixes #3154
* - workaround removal of nested() in py3kMike Bayer2014-07-301-1/+2
|
* - ensure all tests are named test_*Mike Bayer2014-07-3011-47/+48
|
* - fix unit test affected by #3075Mike Bayer2014-07-291-5/+8
|
* pep8 cleanupMike Bayer2014-07-291-285/+342
|
* - The exception wrapping system for DBAPI errors can now accommodateMike Bayer2014-07-292-1/+36
| | | | | | | | non-standard DBAPI exceptions, such as the psycopg2 TransactionRollbackError. These exceptions will now be raised using the closest available subclass in ``sqlalchemy.exc``, in the case of TransactionRollbackError, ``sqlalchemy.exc.OperationalError``. fixes #3075
* - Fixed 0.9.7 regression caused by :ticket:`3067` in conjunction withMike Bayer2014-07-291-2/+2
| | | | | | a mis-named unit test such that so-called "schema" types like :class:`.Boolean` and :class:`.Enum` could no longer be pickled. fixes #3144
* - find the remaining not cleaning up correctly testMike Bayer2014-07-281-1/+2
|
* fix test ordering issuesMike Bayer2014-07-273-66/+42
|
* - add support for tags, including include/exclude support.Mike Bayer2014-07-276-22/+18
| | | | simplify tox again now that we can exclude tests more easily
* Merge branch 'master' into xdist_pocMike Bayer2014-07-261-2/+3
|\
| * fix paren hereMike Bayer2014-07-261-2/+3
| |
* | - scale up for mysql, sqliteMike Bayer2014-07-263-71/+101
|/
* - rework the exclusions system to have much better support for compoundMike Bayer2014-07-262-13/+16
| | | | rules, better message formatting
* - fix whitespaceMike Bayer2014-07-251-2/+2
|
* - restore non_updating_cascade to test_manytomany_nonpassive, but alsoMike Bayer2014-07-251-0/+2
| | | | add sane_multi_rowcount requirement, as pg8000 doesn't do "multi" row count.
* - more pg8000 tests passingMike Bayer2014-07-255-6/+16
|
* Merge remote-tracking branch 'origin/pr/117' into pg8000Mike Bayer2014-07-256-2003/+2294
|\
| * PEP8 tidy of test/orm/test_dynamic.pypr/117Tony Locke2014-07-201-110/+83
| |
| * Fixes for pg8000 for test/orm/test_dynamic.pyTony Locke2014-07-201-5/+7
| |
| * PEP8 tidy of test/orm/test_froms.pyTony Locke2014-07-201-949/+1047
| |
| * Opened test_self_referential for pg8000Tony Locke2014-07-201-2/+1
| | | | | | | | | | The test orm/test_froms.py test_self_referential works with pg8000 now, so I've opened it up.