From dd73bf16fdc15de9280ada8e0264814af7015d7a Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Sat, 3 Jan 2009 03:59:49 +0000 Subject: [PATCH] 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. --- test/orm/naturalpks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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), -- 2.47.3