diff options
| author | Federico Di Gregorio <fog@initd.org> | 2008-11-25 17:45:22 +0100 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2008-11-25 17:45:22 +0100 |
| commit | c1d6073531c2d164d2e7d2c8c49278c2987b98fe (patch) | |
| tree | e5cc9b7cb99e0ed2ac494830d0e677a7127bda0d /psycopg/adapter_qstring.c | |
| parent | b9157c8ba12ad7838a6013a14d2c833ae7da2bd6 (diff) | |
| download | psycopg2-c1d6073531c2d164d2e7d2c8c49278c2987b98fe.tar.gz | |
Applied COPY patch from Alejandro Dubrovsky
Diffstat (limited to 'psycopg/adapter_qstring.c')
| -rw-r--r-- | psycopg/adapter_qstring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/adapter_qstring.c b/psycopg/adapter_qstring.c index e1eb4e1..bad5d81 100644 --- a/psycopg/adapter_qstring.c +++ b/psycopg/adapter_qstring.c @@ -40,7 +40,7 @@ #ifndef PSYCOPG_OWN_QUOTING size_t -qstring_escape(char *to, char *from, size_t len, PGconn *conn) +qstring_escape(char *to, const char *from, size_t len, PGconn *conn) { #if PG_MAJOR_VERSION > 8 || \ (PG_MAJOR_VERSION == 8 && PG_MINOR_VERSION > 1) || \ @@ -54,7 +54,7 @@ qstring_escape(char *to, char *from, size_t len, PGconn *conn) } #else size_t -qstring_escape(char *to, char *from, size_t len, PGconn *conn) +qstring_escape(char *to, const char *from, size_t len, PGconn *conn) { int i, j; |
