Skip to content

Commit 90d271c

Browse files
committed
ON UPDATE..CASCADE is supported
1 parent 3ac0121 commit 90d271c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sqlalchemy_iris/requirements.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def on_update_cascade(self):
6565
def non_updating_cascade(self):
6666
"""target database must *not* support ON UPDATE..CASCADE behavior in
6767
foreign keys."""
68-
return exclusions.open()
68+
return exclusions.closed()
6969

7070
@property
7171
def deferrable_fks(self):
@@ -1110,3 +1110,9 @@ def autoincrement_without_sequence(self):
11101110
"""
11111111
return exclusions.open()
11121112
# return exclusions.closed()
1113+
1114+
@property
1115+
def updateable_autoincrement_pks(self):
1116+
"""Target must support UPDATE on autoincrement/integer primary key."""
1117+
1118+
return exclusions.closed()

0 commit comments

Comments
 (0)