Skip to content

Commit 2030c32

Browse files
committed
Safeguard error if query somehow fails
1 parent e5e1918 commit 2030c32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pysimplesql/pysimplesql.py

+2
Original file line numberDiff line numberDiff line change
@@ -7131,6 +7131,8 @@ def constraint(self, constraint_name):
71317131
"INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS WHERE CONSTRAINT_NAME = "
71327132
f"'{constraint_name}'"
71337133
)
7134+
update_rule = None
7135+
delete_rule = None
71347136
rows = self.execute(query, silent=True)
71357137
for _, row in rows.iterrows():
71367138
if "UPDATE_RULE" in row:

0 commit comments

Comments
 (0)