composite primary key would fail on updates.
Continuation of [ticket:1300].
=======
0.5.6
=====
+- orm
+ - Fixed bug whereby inheritance discriminator part of a
+ composite primary key would fail on updates.
+ Continuation of [ticket:1300].
+
- sql
- Fixed a bug in extract() introduced in 0.5.4 whereby
the string "field" argument was getting treated as a
history = attributes.get_state_history(state, prop.key, passive=True)
if history.added:
hasdata = True
- elif mapper.polymorphic_on and mapper.polymorphic_on.shares_lineage(col):
+ elif mapper.polymorphic_on and mapper.polymorphic_on.shares_lineage(col) and col not in pks:
pass
else:
if post_update_cols is not None and col not in post_update_cols:
assert a.id
assert a.type == 2
+ p.name='p1new'
+ a.name='a1new'
+ s.flush()
+
+ s.expire_all()
+ assert a.name=='a1new'
+ assert p.name=='p1new'
+
class DeleteOrphanTest(_base.MappedTest):
@classmethod