]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- calling corresponding_column with keys_ok matches columns on name, not key, since
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 24 Jan 2007 23:37:03 +0000 (23:37 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 24 Jan 2007 23:37:03 +0000 (23:37 +0000)
commit9349ef38efad07157c163afa387820c870ce97e9
treec454b9d418573641524127326d8592d849521cd8
parent142d3f4bfd1296c045eda3e711c424a52825dab0
- calling corresponding_column with keys_ok matches columns on name, not key, since
the name is meaningful with regards to SQL relationships, the key is not
- adjustments to the recent polymorphic relationship refactorings, specifically
for many-to-one relationships to polymorphic unions that did not contain the
base table [ticket:439].  the lazy/eager clause adaption to the selectable
will match up on straight column names (i.e. its a more liberal policy)
- lazy loader will not attempt to adapt the clause to the selectable if
loads_polymorphic is not enabled, since the more liberal policy of adapting
columns fails for more elaborate join conditions
- will have to see if ppl want to do complex joins with polymorphic relations...
may have to add "polymorphic_primaryjoin" in that case as a last resort (would make
working around these issues a snap, tho...)
CHANGES
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/sql.py
lib/sqlalchemy/sql_util.py
test/orm/inheritance5.py