summaryrefslogtreecommitdiff
path: root/psycopg/adapter_binary.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_binary.c
parent1ac75e3b80c4ca0a576b05bb29f94e2e33fb50e9 (diff)
downloadpsycopg2-0ce52078713846d8874959df896f81c9aeea7aac.tar.gz
#warning fix.
Diffstat (limited to 'psycopg/adapter_binary.c')
-rw-r--r--psycopg/adapter_binary.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/psycopg/adapter_binary.c b/psycopg/adapter_binary.c
index 852e628..b853890 100644
--- a/psycopg/adapter_binary.c
+++ b/psycopg/adapter_binary.c
@@ -46,7 +46,9 @@ binary_escape(unsigned char *from, unsigned int from_length,
(PG_MAJOR_VERSION == 8 && PG_MINOR_VERSION == 1 && PG_PATCH_VERSION >= 4)
return PQescapeByteaConn(conn, from, from_length, to_length);
#else
+#ifdef __GNUC__
#warning "YOUR POSTGRESQL VERSION IS TOO OLD AND IT CAN BE INSECURE"
+#endif
return PQescapeBytea(from, from_length, to_length);
#endif
}