diff options
| author | Federico Di Gregorio <fog@initd.org> | 2006-05-24 10:29:35 +0000 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2006-05-24 10:29:35 +0000 |
| commit | ec877b0ef94b0827d04f1fafe670fc6787c381a1 (patch) | |
| tree | 0b11d251ad7a533a7c638e8453c45656fb063b7d /psycopg/adapter_qstring.c | |
| parent | 5f8eddfcabe12dbd08164a6dcc745085c4fca2d8 (diff) | |
| download | psycopg2-ec877b0ef94b0827d04f1fafe670fc6787c381a1.tar.gz | |
Final of 8.1.4 securiy patch.
Diffstat (limited to 'psycopg/adapter_qstring.c')
| -rw-r--r-- | psycopg/adapter_qstring.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/psycopg/adapter_qstring.c b/psycopg/adapter_qstring.c index 50c62c8..d86540e 100644 --- a/psycopg/adapter_qstring.c +++ b/psycopg/adapter_qstring.c @@ -42,10 +42,11 @@ static size_t qstring_escape(char *to, char *from, size_t len, PGconn *conn) { int err = 0; - +#if PG_MAJOR_VERSION >= 8 && PG_MINOR_VERSION >= 1 && PG_PATCH_VERSION >= 4 if (conn) return PQescapeStringConn(conn, to, from, len, &err); else +#endif return PQescapeString(to, from, len); } #else |
