diff options
author | Oleksandr Shulgin <oleksandr.shulgin@zalando.de> | 2015-10-13 17:29:55 +0200 |
---|---|---|
committer | Oleksandr Shulgin <oleksandr.shulgin@zalando.de> | 2015-10-14 17:00:25 +0200 |
commit | 9295bce154182863e19342b6a4c2e80a58187120 (patch) | |
tree | 435b1d62fed20ad16c571673e682de2c364f2392 /psycopg/utils.c | |
parent | c73c1c577170f51c2dfadcdb61c34e4def82d709 (diff) | |
download | psycopg2-9295bce154182863e19342b6a4c2e80a58187120.tar.gz |
Add psycopg2.extensions.quote_ident.
Diffstat (limited to 'psycopg/utils.c')
-rw-r--r-- | psycopg/utils.c | 4 |
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) |