1
1
mirror of https://github.com/psycopg/psycopg2.git synced 2025-02-28 14:30:32 +03:00

Added note about table names to be escaped in copy_*() methods.

This commit is contained in:
Daniele Varrazzo 2015-05-03 10:22:14 +01:00
parent 4eee1207f9
commit 1d006ccbe9

View File

@ -524,6 +524,13 @@ The ``cursor`` class
>>> cur.fetchall()
[(6, 42, 'foo'), (7, 74, 'bar')]
.. note:: the name of the table is not quoted: if the table name
contains uppercase letters or special characters it must be quoted
with double quotes::
cur.copy_from(f, '"TABLE"')
.. versionchanged:: 2.0.6
added the *columns* parameter.
@ -553,6 +560,12 @@ The ``cursor`` class
2|\N|dada
...
.. note:: the name of the table is not quoted: if the table name
contains uppercase letters or special characters it must be quoted
with double quotes::
cur.copy_to(f, '"TABLE"')
.. versionchanged:: 2.0.6
added the *columns* parameter.