summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* - 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.
| * PEP8 tidy for test/orm/test_naturalpks.pyTony Locke2014-07-201-212/+235
| |
| * Remove requirement for manytomany_nonpassiveTony Locke2014-07-201-1/+0
| | | | | | | | | | | | Removed the non_updating_cascade requirement from test_manytomany_nonpassive. This is because setting passive_updates=False in a relationship should work on *all* dialects.
| * PEP8 tidy of test/orm/test_query.pyTony Locke2014-07-201-472/+600
| |
| * pg8000 passing test/orm/test_query.pyTony Locke2014-07-201-3/+3
| |
| * PEP8 tidy for test/orm/test_transaction.pyTony Locke2014-07-191-106/+144
| |
| * PEP8 tidy for test/orm/test_versioning.pyTony Locke2014-07-191-148/+179
| |
* | - Fixed bug in :class:`.postgresql.array` object where comparisonMike Bayer2014-07-252-0/+29
| | | | | | | | | | to a plain Python list would fail to use the correct array constructor. Pull request courtesy Andrew. fixes #3141
* | - flake8 all of test/dialect/postgresqlMike Bayer2014-07-255-758/+995
| | | | | | | | - add __backend__ to most tests so that pg8000 can start coming in
* | - The MySQL dialect will now disable :meth:`.ConnectionEvents.handle_error`Mike Bayer2014-07-251-0/+28
| | | | | | | | | | | | | | | | | | | | events from firing for those statements which it uses internally to detect if a table exists or not. This is achieved using an execution option ``skip_user_error_events`` that disables the handle error event for the scope of that execution. In this way, user code that rewrites exceptions doesn't need to worry about the MySQL dialect or other dialects that occasionally need to catch SQLAlchemy specific exceptions.
* | - use a variant with expected collation here for mysqlMike Bayer2014-07-251-5/+2
| |
* | - Added a supported :meth:`.FunctionElement.alias` method to functions,Mike Bayer2014-07-241-0/+51
| | | | | | | | | | | | | | | | | | e.g. the ``func`` construct. Previously, behavior for this method was undefined. The current behavior mimics that of pre-0.9.4, which is that the function is turned into a single-column FROM clause with the given alias name, where the column itself is anonymously named. fixes #3137
* | - update some SQL server tests, supportMike Bayer2014-07-223-5/+17
| | | | | | | | - add support for IDENTITY INSERT setting for INSERT with inline VALUES
* | put a greater variance into this test to prevent sporadic failuresMike Bayer2014-07-211-1/+1
| |
* | - Fixed bug introduced in 0.9.5 by new pg8000 isolation level featureMike Bayer2014-07-211-0/+1
|/ | | | | where engine-level isolation level parameter would raise an error on connect. fixes #3134
* - update the flake8 rules againMike Bayer2014-07-1825-3570/+4237
| | | | - apply autopep8 + manual fixes to most of test/sql/
* - Fixed bug in oracle dialect test suite where in one test,Mike Bayer2014-07-181-4/+5
| | | | | 'username' was assumed to be in the database URL, even though this might not be the case. Fixes #3128
* - use an odict here to ensure ordering of propertiesMike Bayer2014-07-151-8/+8
|
* - Fixed a regression caused by :ticket:`2976` released in 0.9.4 whereMike Bayer2014-07-151-0/+72
| | | | | | | | | | | | | | | | | the "outer join" propagation along a chain of joined eager loads would incorrectly convert an "inner join" along a sibling join path into an outer join as well, when only descendant paths should be receiving the "outer join" propagation; additionally, fixed related issue where "nested" join propagation would take place inappropriately between two sibling join paths. this is accomplished by re-introducing the removed flag "allow_innerjoin", now inverted and named "chained_from_outerjoin". Propagating this flag allows us to know when we have encountered an outerjoin along a load path, without confusing it for state obtained from a sibling path. fixes #3131 ref #2976
* - Fixed a SQLite join rewriting issue where a subquery that is embeddedMike Bayer2014-07-151-1/+43
| | | | | | | | as a scalar subquery such as within an IN would receive inappropriate substitutions from the enclosing query, if the same table were present inside the subquery as were in the enclosing query such as in a joined inheritance scenario. fixes #3130
* - wrestle with conv() and tests some moreMike Bayer2014-07-141-4/+24
|
* - allow the compilation rule that gets the formatted nameMike Bayer2014-07-141-0/+19
| | | | | to again have the chance to veto rendering, as the naming convention can make the decision that the name is "none" or not now.
* - Fix bug in naming convention feature where using a checkMike Bayer2014-07-141-6/+80
| | | | | | | | | | | | | constraint convention that includes ``constraint_name`` would then force all :class:`.Boolean` and :class:`.Enum` types to require names as well, as these implicitly create a constraint, even if the ultimate target backend were one that does not require generation of the constraint such as Postgresql. The mechanics of naming conventions for these particular constraints has been reorganized such that the naming determination is done at DDL compile time, rather than at constraint/table construction time. fixes #3067
* - In the SQL Server pyodbc dialect, repaired the implementationMike Bayer2014-07-141-0/+22
| | | | | | | | | for the ``description_encoding`` dialect parameter, which when not explicitly set was preventing cursor.description from being parsed correctly in the case of result sets that contained names in alternate encodings. This parameter shouldn't be needed going forward. fixes #3091
* - Fixed a regression from 0.9.0 due to :ticket:`2736` where theMike Bayer2014-07-142-0/+47
| | | | | | | | | :meth:`.Query.select_from` method no longer set up the "from entity" of the :class:`.Query` object correctly, so that subsequent :meth:`.Query.filter_by` or :meth:`.Query.join` calls would fail to check the appropriate "from" entity when searching for attributes by string name. fixes #3083
* -Fixed bug in common table expressions whereby positional boundMike Bayer2014-07-141-0/+36
| | | | | | parameters could be expressed in the wrong final order when CTEs were nested in certain ways. fixes #3090