summaryrefslogtreecommitdiff
path: root/psycopg/adapter_qstring.c
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2006-06-11 04:04:04 +0000
committerFederico Di Gregorio <fog@initd.org>2006-06-11 04:04:04 +0000
commit0ce52078713846d8874959df896f81c9aeea7aac (patch)
treec1319b307e594caed8f0d24c1ba2a3b5ef9ec31d /psycopg/adapter_qstring.c
parent1ac75e3b80c4ca0a576b05bb29f94e2e33fb50e9 (diff)
downloadpsycopg2-0ce52078713846d8874959df896f81c9aeea7aac.tar.gz
#warning fix.
Diffstat (limited to 'psycopg/adapter_qstring.c')
-rw-r--r--psycopg/adapter_qstring.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/psycopg/adapter_qstring.c b/psycopg/adapter_qstring.c
index ca627d7..7caed9a 100644
--- a/psycopg/adapter_qstring.c
+++ b/psycopg/adapter_qstring.c
@@ -47,7 +47,9 @@ qstring_escape(char *to, char *from, size_t len, PGconn *conn)
int err;
return PQescapeStringConn(conn, to, from, len, &err);
#else
+#ifdef __GNUC__
#warning "YOUR POSTGRESQL VERSION IS TOO OLD AND IT CAN BE INSECURE"
+#endif
return PQescapeString(to, from, len);
#endif
}