Skip to content

Commit 63bf855

Browse files
committed
Quote table name
1 parent 041378f commit 63bf855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target_postgres/sinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def generate_copy_statement(
292292
A copy statement.
293293
"""
294294
columns_list = ", ".join((f'"{column.name}"' for column in columns))
295-
sql: str = f"copy {full_table_name} ({columns_list}) from stdin with csv"
295+
sql: str = f'copy "{full_table_name}" ({columns_list}) from stdin with csv'
296296

297297
return sql
298298

0 commit comments

Comments
 (0)