Commit 8458c87d authored by ARCHER's avatar ARCHER

back to quoting table name in method_copy

parent 932f98d5
......@@ -83,9 +83,9 @@ def method_copy(table, conn, keys, data_iter):
columns = ', '.join('"{}"'.format(k) for k in keys)
if table.schema:
table_name = '{}.{}'.format(table.schema,
table_name = '"{}"."{}"'.format(table.schema,
table_name = '%s' %
table_name = '"%s"' %
sql = 'COPY {} ({}) FROM STDIN WITH CSV'.format(
table_name, columns)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment