Skip to content

Commit

Permalink
formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonLuttenberger committed Dec 3, 2023
1 parent 56f5fd3 commit feee7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awswrangler/sqlserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _drop_table(cursor: "Cursor", schema: Optional[str], table: str) -> None:

def _does_table_exist(cursor: "Cursor", schema: Optional[str], table: str) -> bool:
schema_str = f"TABLE_SCHEMA = '{schema}' AND" if schema else ""
cursor.execute(f"SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE " f"{schema_str} TABLE_NAME = ?", table)
cursor.execute(f"SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE {schema_str} TABLE_NAME = ?", table)
return len(cursor.fetchall()) > 0


Expand Down

0 comments on commit feee7f1

Please sign in to comment.