]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The "use get" behavior of many-to-one relations, i.e. that a
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 8 Dec 2009 01:53:21 +0000 (01:53 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 8 Dec 2009 01:53:21 +0000 (01:53 +0000)
commit71c0be09214564f0c766f77444a68348ba770508
tree4d63c4b3e8d57063feb12277ec1f5074b4728bce
parent048f70ce85d254eff0b5ccf16fd4e15274b0bc6a
- The "use get" behavior of many-to-one relations, i.e. that a
lazy load will fallback to the possibly cached query.get()
value, now works across join conditions where the two compared
types are not exactly the same class, but share the same
"affinity" - i.e. Integer and SmallInteger.  Also allows
combinations of reflected and non-reflected types to work
with 0.5 style type reflection, such as PGText/Text (note 0.6
reflects types as their generic versions).   [ticket:1556]
- types now support an "affinity comparison" operation, i.e.
that an Integer/SmallInteger are "compatible", or
a Text/String, PickleType/Binary, etc.  Part of
[ticket:1556].
CHANGES
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/types.py
test/orm/test_lazy_relations.py
test/sql/test_types.py