]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- A column can be added to a joined-table subclass after
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 1 Sep 2009 22:26:23 +0000 (22:26 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 1 Sep 2009 22:26:23 +0000 (22:26 +0000)
commit4888c89ce53b35994f2d8b4a1116fd9d7c2a5804
tree38364a17268cf8cd6f2f62f553f645ada0fddcd2
parentaa73243fdeabbbbe0390222a96de8454839b5cf3
- A column can be added to a joined-table subclass after
the class has been constructed (i.e. via class-level
attribute assignment).  The column is added to the underlying
Table as always, but now the mapper will rebuild its
"join" to include the new column, instead of raising
an error about "no such column, use column_property()
instead".  [ticket:1523]
- added an additional test in test_mappers for "added nonexistent column",
even though this test is already in test_query its more appropriate within
"mapper configuration" tests.
CHANGES
lib/sqlalchemy/orm/mapper.py
test/ext/test_declarative.py
test/orm/test_mapper.py