diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-07-21 20:25:36 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-07-21 20:25:36 +0000 |
commit | f300bb43dedd54a81f5bd72fd9afad1c2bb39ede (patch) | |
tree | 4f6eab18681ed728755cc2ccd75d452b97696da2 /test/orm/inheritance/test_basic.py | |
parent | 8804e1963f7f391bfc29feca7155e3a5f9bb097d (diff) | |
download | sqlalchemy-f300bb43dedd54a81f5bd72fd9afad1c2bb39ede.tar.gz |
- Fixed bug whereby inheritance discriminator part of a
composite primary key would fail on updates.
Continuation of [ticket:1300].
Diffstat (limited to 'test/orm/inheritance/test_basic.py')
-rw-r--r-- | test/orm/inheritance/test_basic.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/orm/inheritance/test_basic.py b/test/orm/inheritance/test_basic.py index fc4aae17d..213f2ebf4 100644 --- a/test/orm/inheritance/test_basic.py +++ b/test/orm/inheritance/test_basic.py @@ -985,6 +985,14 @@ class PKDiscriminatorTest(_base.MappedTest): 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 |