From: Michael Trier Date: Sat, 3 Jan 2009 03:59:49 +0000 (+0000) Subject: Excluded another failing test from the mssql dialect. X-Git-Tag: rel_0_5_0~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd73bf16fdc15de9280ada8e0264814af7015d7a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Excluded another failing test from the mssql dialect. MSSQL doesn't allow ON UPDATE for self-referential keys. The tree of cascading referential actions must only have one path to a particular table on the cascading referential actions tree. --- diff --git a/test/orm/naturalpks.py b/test/orm/naturalpks.py index 523894ce20..58ebea6ca4 100644 --- a/test/orm/naturalpks.py +++ b/test/orm/naturalpks.py @@ -309,10 +309,11 @@ class NaturalPKTest(_base.MappedTest): sess.flush() r = sess.query(Item).with_parent(u2).all() self.assertEquals(Item(itemname='item2'), r[0]) - - + class SelfRefTest(_base.MappedTest): + __unsupported_on__ = 'mssql' # mssql doesn't allow ON UPDATE on self-referential keys + def define_tables(self, metadata): Table('nodes', metadata, Column('name', String(50), primary_key=True),