diff options
| author | Federico Di Gregorio <fog@initd.org> | 2006-06-11 04:04:04 +0000 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2006-06-11 04:04:04 +0000 |
| commit | 0ce52078713846d8874959df896f81c9aeea7aac (patch) | |
| tree | c1319b307e594caed8f0d24c1ba2a3b5ef9ec31d /psycopg/adapter_qstring.c | |
| parent | 1ac75e3b80c4ca0a576b05bb29f94e2e33fb50e9 (diff) | |
| download | psycopg2-0ce52078713846d8874959df896f81c9aeea7aac.tar.gz | |
#warning fix.
Diffstat (limited to 'psycopg/adapter_qstring.c')
| -rw-r--r-- | psycopg/adapter_qstring.c | 2 |
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 } |
