]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- fix test_single test to use default dialect
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 16 Sep 2010 02:20:01 +0000 (22:20 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 16 Sep 2010 02:20:01 +0000 (22:20 -0400)
commit52735e75c527dd24a793ae7ee0b1978e8aacacb5
treef70345fd8a325517df81d8e057d5c51078cd9d0a
parente79158e296a8f889e823cf5c7ce89747ed242eb4
- fix test_single test to use default dialect
- The exception raised by Session when it is used
subsequent to a subtransaction rollback (which is what
happens when a flush fails in autocommit=False mode) has
now been reworded (this is the "inactive due to a
rollback in a subtransaction" message). In particular,
if the rollback was due to an exception during flush(),
the message states this is the case, and reiterates the
string form of the original exception that occurred
during flush. If the session is closed due to explicit
usage of subtransactions (not very common), the message
just states this is the case.

- The exception raised by Mapper when repeated requests to
its initialization are made after initialization already
failed no longer assumes the "hasattr" case, since
there's other scenarios in which this message gets
emitted, and the message also does not compound onto
itself multiple times - you get the same message for
each attempt at usage. The misnomer "compiles" is being
traded out for "initialize".
CHANGES
lib/sqlalchemy/ext/declarative.py
lib/sqlalchemy/orm/dependency.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/session.py
test/ext/test_declarative.py
test/orm/inheritance/test_single.py
test/orm/test_mapper.py
test/orm/test_session.py