diff options
author | Felipe Pena <felipe@php.net> | 2010-04-20 11:49:23 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-04-20 11:49:23 +0000 |
commit | 0b401e12891fd9fe773d66add86f2c4093527b46 (patch) | |
tree | 69efc99af73eb95d527ae2bdf2e8ac02f7b93ac9 /ext/pgsql/pgsql.c | |
parent | 9c97c268320c119e95344462af20c81185a4840c (diff) | |
download | php-git-0b401e12891fd9fe773d66add86f2c4093527b46.tar.gz |
- Fixed bug #51608 (pg_copy_to: WARNING: nonstandard use of \\ in a string literal)
Patch by: cbandy at jbandy dot com
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r-- | ext/pgsql/pgsql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 43bd32b8f5..92725ee996 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -3765,9 +3765,9 @@ PHP_FUNCTION(pg_copy_to) } if (memchr(table_name, '.', table_name_len)) { - spprintf(&query, 0, "COPY %s TO STDOUT DELIMITERS '%c' WITH NULL AS '%s'", table_name, *pg_delim, pg_null_as); + spprintf(&query, 0, "COPY %s TO STDOUT DELIMITERS E'%c' WITH NULL AS E'%s'", table_name, *pg_delim, pg_null_as); } else { - spprintf(&query, 0, "COPY \"%s\" TO STDOUT DELIMITERS '%c' WITH NULL AS '%s'", table_name, *pg_delim, pg_null_as); + spprintf(&query, 0, "COPY \"%s\" TO STDOUT DELIMITERS E'%c' WITH NULL AS E'%s'", table_name, *pg_delim, pg_null_as); } while ((pgsql_result = PQgetResult(pgsql))) { |