]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- backport of r6540
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 8 Dec 2009 01:54:08 +0000 (01:54 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 8 Dec 2009 01:54:08 +0000 (01:54 +0000)
commit2305e22d6bde2161f5bee25514f0a8444cce8416
tree54d183a1b92a4473636051554b0c1b28b73e2f98
parentacb2faedcd1502248e6db46228112133094dd3cf
- backport of r6540
- 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/orm/strategies.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/types.py
test/orm/test_lazy_relations.py
test/sql/test_types.py