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 00946ae7f4
commit b77a8033d3

View File

@ -524,6 +524,13 @@ The ``cursor`` class
>>> cur.fetchall() >>> cur.fetchall()
[(6, 42, 'foo'), (7, 74, 'bar')] [(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 .. versionchanged:: 2.0.6
added the *columns* parameter. added the *columns* parameter.
@ -553,6 +560,12 @@ The ``cursor`` class
2|\N|dada 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 .. versionchanged:: 2.0.6
added the *columns* parameter. added the *columns* parameter.