summaryrefslogtreecommitdiff
path: root/psycopg/utils.c
diff options
context:
space:
mode:
authorOleksandr Shulgin <oleksandr.shulgin@zalando.de>2015-10-13 17:29:55 +0200
committerOleksandr Shulgin <oleksandr.shulgin@zalando.de>2015-10-14 17:00:25 +0200
commit9295bce154182863e19342b6a4c2e80a58187120 (patch)
tree435b1d62fed20ad16c571673e682de2c364f2392 /psycopg/utils.c
parentc73c1c577170f51c2dfadcdb61c34e4def82d709 (diff)
downloadpsycopg2-9295bce154182863e19342b6a4c2e80a58187120.tar.gz
Add psycopg2.extensions.quote_ident.
Diffstat (limited to 'psycopg/utils.c')
-rw-r--r--psycopg/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/utils.c b/psycopg/utils.c
index 836f612..ec8e47c 100644
--- a/psycopg/utils.c
+++ b/psycopg/utils.c
@@ -87,7 +87,7 @@ psycopg_escape_string(connectionObject *conn, const char *from, Py_ssize_t len,
return to;
}
-/* Escape a string to build a valid PostgreSQL identifier
+/* Escape a string to build a valid PostgreSQL identifier.
*
* Allocate a new buffer on the Python heap containing the new string.
* 'len' is optional: if 0 the length is calculated.
@@ -96,7 +96,7 @@ psycopg_escape_string(connectionObject *conn, const char *from, Py_ssize_t len,
*
* WARNING: this function is not so safe to allow untrusted input: it does no
* check for multibyte chars. Such a function should be built on
- * PQescapeIndentifier, which is only available from PostgreSQL 9.0.
+ * PQescapeIdentifier, which is only available from PostgreSQL 9.0.
*/
char *
psycopg_escape_identifier_easy(const char *from, Py_ssize_t len)