Skip to content

Commit f8b2e0c

Browse files
authored
fix(Cursor, __is_valid_table): replace table_schema by schema_name (#199)
SVV_ALL_TABLES does not have table_schema column
1 parent 083fe9b commit f8b2e0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redshift_connector/cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def __is_valid_table(self: "Cursor", table: str) -> bool:
549549

550550
try:
551551
if len(split_table_name) == 2:
552-
q += " and table_schema = ?"
552+
q += " and schema_name = ?"
553553
self.execute(q, (split_table_name[1], split_table_name[0]))
554554
else:
555555
self.execute(q, (split_table_name[0],))

0 commit comments

Comments
 (0)