From 3d487b64eb414ea0c22c63ee7d17fee08ef94769 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Sat, 3 Jan 2009 03:59:54 +0000 Subject: [PATCH] Modified DefaultTest in order to get passage on mssql and still test the right stuff. --- test/orm/unitofwork.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/orm/unitofwork.py b/test/orm/unitofwork.py index cd27bdc9e3..a4363b5e5f 100644 --- a/test/orm/unitofwork.py +++ b/test/orm/unitofwork.py @@ -842,7 +842,7 @@ class DefaultTest(_base.MappedTest): """ def define_tables(self, metadata): - use_string_defaults = testing.against('postgres', 'oracle', 'sqlite') + use_string_defaults = testing.against('postgres', 'oracle', 'sqlite', 'mssql') if use_string_defaults: hohotype = String(30) @@ -868,13 +868,17 @@ class DefaultTest(_base.MappedTest): Column('id', Integer, primary_key=True), Column('data', String(50))) - if testing.against('postgres', 'oracle', 'mssql'): + if testing.against('postgres', 'oracle'): dt.append_column( Column('secondary_id', Integer, sa.Sequence('sec_id_seq'), unique=True)) st.append_column( Column('fk_val', Integer, ForeignKey('default_t.secondary_id'))) + elif testing.against('mssql'): + st.append_column( + Column('fk_val', Integer, + ForeignKey('default_t.id'))) else: st.append_column( Column('hoho', hohotype, ForeignKey('default_t.hoho'))) -- 2.47.3