]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Two fixes to help prevent out-of-band columns from
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 3 Dec 2008 17:28:36 +0000 (17:28 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 3 Dec 2008 17:28:36 +0000 (17:28 +0000)
commit0410eae36b36dc8ea7e747c4b81c7ec9de5f2da4
tree86a53b2b2c33a3348d6aca9c7bc825315816748f
parent851a14aa1a0e7a734a6f810f0e6e5c39d8e63b1b
- Two fixes to help prevent out-of-band columns from
being rendered in polymorphic_union inheritance
scenarios (which then causes extra tables to be
rendered in the FROM clause causing cartesian
products):
- improvements to "column adaption" for
  a->b->c inheritance situations to better
  locate columns that are related to one
  another via multiple levels of indirection,
  rather than rendering the non-adapted
  column.
- the "polymorphic discriminator" column is
  only rendered for the actual mapper being
  queried against. The column won't be
  "pulled in" from a subclass or superclass
  mapper since it's not needed.
CHANGES
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/sql/util.py
test/orm/inheritance/concrete.py
test/sql/generative.py