diff options
Diffstat (limited to 'psycopg/adapter_binary.c')
| -rw-r--r-- | psycopg/adapter_binary.c | 2 |
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 } |
