]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed bug in TypeDecorator whereby the dialect-specific
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 21 Oct 2010 20:42:32 +0000 (16:42 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 21 Oct 2010 20:42:32 +0000 (16:42 -0400)
commitee345b055c2c0c44a6cee4f14f70ebb5e4725aab
tree1631523bb3a8744bf2075dd2bf256f77703488cf
parent3d9ca1b7d658f7af04c27e85227e6b92d0e9eb5d
- Fixed bug in TypeDecorator whereby the dialect-specific
type was getting pulled in to generate the DDL for a
given type, which didn't always return the correct result.

- TypeDecorator can now have a fully constructed type
specified as its "impl", in addition to a type class.

- TypeDecorator will now place itself as the resulting
type for a binary expression where the type coercion
rules would normally return its impl type - previously,
a copy of the impl type would be returned which would
have the TypeDecorator embedded into it as the "dialect"
impl, this was probably an unintentional way of achieving
the desired effect.

- TypeDecorator.load_dialect_impl() returns "self.impl" by
default, i.e. not the dialect implementation type of
"self.impl".   This to support compilation correctly.
Behavior can be user-overridden in exactly the same way
as before to the same effect.
CHANGES
lib/sqlalchemy/types.py
test/sql/test_types.py