Closed waldner closed 1 year ago
The table name and the schema name should be passed as separate arguments, so copy_to_table(table_name='foo', schema_name='public')
.
That still fails with
Traceback (most recent call last):
...
File "asyncpg/protocol/protocol.pyx", line 529, in copy_in
asyncpg.exceptions.UndefinedTableError: relation "public.public.foo" does not exist
Sorry, my bad. It works fine. Thanks!
Minimal reproducer:
Result:
Since the table is indeed created, it seems that what's failing is
copy_to_table
.empty.csv
is an empty file. It fails in the same way with a non-empty file.