diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-06 17:05:32 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-06 17:05:32 -0500 |
commit | 987828194ee571c39ed461a9233191d968e4f4c7 (patch) | |
tree | a595d54454a1917ce29443b5b4f7cf658111aecf /test/orm/inheritance/test_basic.py | |
parent | 8423dbcf62284e669c65afc258b0b993f8a66b6e (diff) | |
download | sqlalchemy-987828194ee571c39ed461a9233191d968e4f4c7.tar.gz |
oracle fixes
Diffstat (limited to 'test/orm/inheritance/test_basic.py')
-rw-r--r-- | test/orm/inheritance/test_basic.py | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/test/orm/inheritance/test_basic.py b/test/orm/inheritance/test_basic.py index 11fca582a..57c40ccc1 100644 --- a/test/orm/inheritance/test_basic.py +++ b/test/orm/inheritance/test_basic.py @@ -209,15 +209,18 @@ class PolymorphicAttributeManagementTest(_base.MappedTest): @classmethod def define_tables(cls, metadata): Table('table_a', metadata, - Column('id', Integer, primary_key=True), + Column('id', Integer, primary_key=True, + test_needs_autoincrement=True), Column('class_name', String(50)) ) Table('table_b', metadata, - Column('id', Integer, ForeignKey('table_a.id'), primary_key=True), + Column('id', Integer, ForeignKey('table_a.id'), + primary_key=True), Column('class_name', String(50)) ) Table('table_c', metadata, - Column('id', Integer, ForeignKey('table_b.id'),primary_key=True) + Column('id', Integer, ForeignKey('table_b.id'), + primary_key=True) ) @classmethod @@ -280,22 +283,26 @@ class CascadeTest(_base.MappedTest): def define_tables(cls, metadata): global t1, t2, t3, t4 t1= Table('t1', metadata, - Column('id', Integer, primary_key=True, test_needs_autoincrement=True), + Column('id', Integer, primary_key=True, + test_needs_autoincrement=True), Column('data', String(30)) ) t2 = Table('t2', metadata, - Column('id', Integer, primary_key=True, test_needs_autoincrement=True), + Column('id', Integer, primary_key=True, + test_needs_autoincrement=True), Column('t1id', Integer, ForeignKey('t1.id')), Column('type', String(30)), Column('data', String(30)) ) t3 = Table('t3', metadata, - Column('id', Integer, ForeignKey('t2.id'), primary_key=True), + Column('id', Integer, ForeignKey('t2.id'), + primary_key=True), Column('moredata', String(30))) t4 = Table('t4', metadata, - Column('id', Integer, primary_key=True, test_needs_autoincrement=True), + Column('id', Integer, primary_key=True, + test_needs_autoincrement=True), Column('t3id', Integer, ForeignKey('t3.id')), Column('data', String(30))) |