We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b2e0c commit b199bfaCopy full SHA for b199bfa
redshift_connector/cursor.py
@@ -353,9 +353,9 @@ def insert_data_bulk(
353
354
def __has_valid_columns(self: "Cursor", table: str, columns: typing.List[str]) -> bool:
355
split_table_name: typing.List[str] = table.split(".")
356
- q: str = "select 1 from information_schema.columns where table_name = ? and column_name = ?"
+ q: str = "select 1 from pg_catalog.svv_all_columns where table_name = ? and column_name = ?"
357
if len(split_table_name) == 2:
358
- q += " and table_schema = ?"
+ q += " and schema_name = ?"
359
param_list = [[split_table_name[1], c, split_table_name[0]] for c in columns]
360
else:
361
param_list = [[split_table_name[0], c] for c in columns]
0 commit comments