]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- the ordering of columns in a multi-column property now is in
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Nov 2010 18:44:03 +0000 (13:44 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Nov 2010 18:44:03 +0000 (13:44 -0500)
commit007344a40a9ec8f1abed3af1ff7c1473031f7b50
tree0b8e0e1bffbc7a0d49a336474e14e3b895001228
parent4af7bc6cfc8790bf6ef267c059a47952de7c64fa
- the ordering of columns in a multi-column property now is in
  reverse order of which they were added to the property. A
  typical effect of this is that the ".id" attribute on a
  joined-inheritance subclass, where both parent/child tables
  name the PK column ".id", will reference the ".id" column of
  the child table, not the parent, thus allowing join conditions
  and such to be constructed more intuitively. This is a
  behavior change for some joined-table inheritance queries.
  [ticket:1892]
- it's now an error condition to map to a join where multiple
  same-named columns from each table combine themselves
  implicitly. An explicit mention in the "properties" dictionary
  should be specified, using a list of columns, or
  column_property(*cols) with declarative. [ticket:1892]
lib/sqlalchemy/orm/mapper.py
test/ext/test_declarative.py
test/orm/inheritance/test_basic.py
test/orm/inheritance/test_query.py
test/orm/test_mapper.py