From b77a8033d311f14245b548a7eba1c9fc1d26edbd Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 3 May 2015 10:22:14 +0100 Subject: [PATCH] Added note about table names to be escaped in copy_*() methods. --- doc/src/cursor.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/src/cursor.rst b/doc/src/cursor.rst index ebfa90ad..73bb5375 100644 --- a/doc/src/cursor.rst +++ b/doc/src/cursor.rst @@ -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.