You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just upgraded from psycopg2 version 2.8.6 to version 2.9.3 and the following code broke for me:
from django.db import connection
from io import StringIO
f = StringIO("foo\ttrue\t120")
with connection.cursor() as cursor:
cursor.copy_from(
file=f,
table="public.potential",
columns=("originalname", "missing", "score")
)
It gives me the following error:
UndefinedTable: relation "public.potential" does not exist
When I remove "public." from the table name, it works again.
I would have expected fully-qualified table names to work. Nothing in the postgres documentation of COPY FROM seems to suggest otherwise. I'm using python 3.9.0 and postgresql 12.4.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hello,
I just upgraded from psycopg2 version 2.8.6 to version 2.9.3 and the following code broke for me:
It gives me the following error:
When I remove "public." from the table name, it works again.
I would have expected fully-qualified table names to work. Nothing in the postgres documentation of COPY FROM seems to suggest otherwise. I'm using python 3.9.0 and postgresql 12.4.
Thanks in advance!
The text was updated successfully, but these errors were encountered: