Skip to content

Commit

Permalink
RM-96 fix export objects call
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantimjohn committed Jul 17, 2023
1 parent 812fe40 commit 65fc54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion records_mover/db/vertica/vertica_db_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def has_table(self, schema: str, table: str) -> bool:

def schema_sql(self, schema: str, table: str) -> str:
sql = text("SELECT EXPORT_OBJECTS('', :schema_and_table , false)")
result = self.db_conn.execute(sql, {'schema_and_table': f"{schema}.{table}"}).fetchall()
result = self.db_conn.execute(sql, schema_and_table=f"{schema}.{table}").fetchall()

if len(result) == 1:
return result[0].EXPORT_OBJECTS
Expand Down

0 comments on commit 65fc54c

Please sign in to comment.