Commit Graph

10240 Commits

Author SHA1 Message Date
Mike Bayer 2c9ff9115c - changelog, fixes #3027 2014-08-09 18:10:38 -04:00
Mike Bayer ae441810e0 - rework documentation for reflection flags; also include
information regarding #3027.
2014-08-09 18:08:05 -04:00
Malik Diarra ad8f921e96 Providing an autoload_with info automatically sets autoload to True 2014-08-09 21:43:32 +02:00
Mike Bayer cca4d8fc73 - add tests for the savepoint recipe 2014-08-09 14:03:17 -04:00
Mike Bayer 4b51c49dcd - rewrite all the sqlite/pysqlite transaction isolation docs 2014-08-09 13:53:21 -04:00
Matt Chisholm 88f7ec6a0e fix MutableDict.coerce
If a class inherited from MutableDict (say, for instance, to add an update() method), coerce() would give back an instance of MutableDict instead of an instance of the derived class.
2014-08-09 11:03:10 +02:00
Matt Chisholm 2645c84277 add update() support to MutableDict 2014-08-09 11:02:01 +02:00
Mike Bayer 17720f306d - oursql doesn't pass this consistently, not sure what the issue is 2014-08-08 14:47:27 -04:00
Mike Bayer 52f7ed0859 - use configured test_schema here 2014-08-08 14:41:01 -04:00
Mike Bayer f7cc3595ef oursql seems to handle this? unclear, might be dependent on mysql version 2014-08-08 14:40:44 -04:00
Mike Bayer 9554759642 - have python setup.py test use xdist with -q 2014-08-08 13:51:58 -04:00
Mike Bayer 3c30e805c2 - memusage is fine for parallel 2014-08-08 13:48:27 -04:00
Mike Bayer ab7c785d96 - turn off the testing reaper here, that's the source of the leaks
when we are running with pydist, and even when we are running without it
in fact...
2014-08-08 13:06:41 -04:00
Ilya Pekelny a0e0f4c289 Public inspector method to load enum list
Provide opportunity to get enums list via an inspector instance public
interface.
2014-08-08 10:05:30 +03:00
Ilya Pekelny 10bb97e89a DropEnumType class available from postgres dialect 2014-08-08 10:00:17 +03:00
Jack Zhou 9e621d18aa Added documentation about interaction between subqueryload and LIMIT/OFFSET. 2014-08-07 12:08:43 -07:00
Mike Bayer 6fd073b912 - take out the iterator approach here as it does not support concurrent access 2014-08-07 12:36:50 -04:00
Mike Bayer 3c6ff6adae -Fixed bug where Postgresql JSON type was not able to persist or
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
2014-08-07 10:43:55 -04:00
Mike Bayer b35e6c69b7 - clarify docs that contains_eager() is included in the of_type() system,
fix #2438
2014-08-07 09:59:59 -04:00
mike bayer a3761896fa Merge pull request #127 from mwhite/master
fix typo in cascade documentation
2014-08-06 22:12:41 -04:00
Michael White 042131443f fix typo in cascade documentation 2014-08-05 22:47:40 -04:00
Mike Bayer 4ddc4c456c - add some docs to try to explain the behavior with MySQL / TIMESTAMP.
ref #3155
2014-08-04 23:47:14 -04:00
Mike Bayer 7c80e521f0 - Fixed bug in CTE where `literal_binds` compiler argument would not
be always be correctly propagated when one CTE referred to another
aliased CTE in a statement.
Fixes #3154
2014-08-02 14:42:57 -04:00
Tony Locke 0dbe9d9aaf pg8000 now supports sane_multi_rowcount
From pg8000-1.9.14 sane_multi_rowcount is supported so this commit
updates the dialect accordingly.
2014-08-02 16:19:46 +01:00
Tony Locke ed1bbbed27 two_phase_recover, COMMIT PREPARED in transaction
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.
2014-08-02 15:29:36 +01:00
Tony Locke 2e44749b76 Remove spurious print statements in pg8000 dialect 2014-08-02 15:29:36 +01:00
Tony Locke f586754c86 PEP8 tidy of test/engine/test_reconnect 2014-08-02 15:29:36 +01:00
Tony Locke c2a00153f1 With pg8000-1.9.13 passes engine/test_reconnect
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.
2014-08-02 15:29:36 +01:00
Mike Bayer 32165f5020 - update the literal binds section 2014-07-30 16:08:33 -04:00
Mike Bayer 5a86dba402 - workaround removal of nested() in py3k 2014-07-30 12:50:38 -04:00
Mike Bayer 0bf33068f4 - ensure all tests are named test_* 2014-07-30 12:18:33 -04:00
Mike Bayer d16f8130e9 - repair test finding to not skip the test_suite tests 2014-07-30 12:05:35 -04:00
Mike Bayer 326a3d85f7 - fix unit test affected by #3075 2014-07-29 19:09:48 -04:00
Mike Bayer e5620993bf pep8 cleanup 2014-07-29 14:17:29 -04:00
Mike Bayer 83326bf44c - The exception wrapping system for DBAPI errors can now accommodate
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
2014-07-29 14:06:43 -04:00
Mike Bayer 405c223ae5 - Fixed 0.9.7 regression caused by 🎫3067 in conjunction with
a mis-named unit test such that so-called "schema" types like
:class:`.Boolean` and :class:`.Enum` could no longer be pickled.
fixes #3144
2014-07-29 13:32:05 -04:00
Mike Bayer 8574d5051a - find the remaining not cleaning up correctly test 2014-07-28 13:11:04 -04:00
Mike Bayer 1cb94d89d5 fix test ordering issues 2014-07-27 22:53:17 -04:00
Mike Bayer 82f62509e8 - remove print statement
- ensure non-tests wont run
2014-07-27 21:40:16 -04:00
Mike Bayer 1075801667 - exclude profiling altogether from coverage 2014-07-27 20:07:57 -04:00
Mike Bayer eaaaef6ae2 - disable C exts on coverage run 2014-07-27 19:55:00 -04:00
Mike Bayer 6e407b6c09 - remove debugging assertions
- keep sqlite as memory even with parallel for now
2014-07-27 18:55:02 -04:00
Mike Bayer 54592942c4 - add support for tags, including include/exclude support.
simplify tox again now that we can exclude tests more easily
2014-07-27 18:46:20 -04:00
Mike Bayer 35551841c5 - reorganize tox options 2014-07-26 21:18:19 -04:00
Mike Bayer 41a8a85311 Merge branch 'master' into xdist_poc 2014-07-26 20:53:27 -04:00
Mike Bayer 82965851fe fix paren here 2014-07-26 20:53:12 -04:00
Mike Bayer d2358629c9 - scale up for mysql, sqlite 2014-07-26 20:50:57 -04:00
Mike Bayer e65cb04974 Merge branch 'master' into xdist_poc
Conflicts:
	lib/sqlalchemy/engine/url.py
2014-07-26 19:04:07 -04:00
Mike Bayer c85fa9fa50 - rework the exclusions system to have much better support for compound
rules, better message formatting
2014-07-26 18:26:22 -04:00
Mike Bayer 759e8aec13 - fix whitespace 2014-07-25 20:23:10 -04:00