]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
adjusted "blank out primary key" rule to check for "allow_null_pks" on target mapper...
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 7 Nov 2007 01:36:16 +0000 (01:36 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 7 Nov 2007 01:36:16 +0000 (01:36 +0000)
commitc1a9a96ba541c8ec12864259dd2f076ef6e056c8
tree8c3568d1d61aad6d664144859d4fecd9a1cd9965
parente09fed05c706b585b09749a8ff1bc87776b73ab5
adjusted "blank out primary key" rule to check for "allow_null_pks" on target mapper.  this was revealed by
recent attributes.py change in r3695 that causes a value of "None" to register as part of the attribute history's
added_items() collection (i.e. since AttributeHistory compares against NO_VALUE instead of None).
CHANGES
lib/sqlalchemy/orm/sync.py
test/orm/relationships.py