diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2009-03-12 22:53:16 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2009-03-12 22:53:16 +0000 |
commit | 8610935eacfd0dc7b859417e4b8927f112b9a19c (patch) | |
tree | e613527addddb1154e30f91aa6bf23751d5a9930 /ext/pgsql | |
parent | 1df58d629aad75ef6df21b9cb222fe005b124dfb (diff) | |
download | php-git-8610935eacfd0dc7b859417e4b8927f112b9a19c.tar.gz |
Fixed bug #47639 (pg_copy_from() WARNING: nonstandard use of \\ in a string
literal)
Diffstat (limited to 'ext/pgsql')
-rw-r--r-- | ext/pgsql/pgsql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 5b6e3c881a..8a2dff0978 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -3890,7 +3890,7 @@ PHP_FUNCTION(pg_copy_from) ZEND_FETCH_RESOURCE2(pgsql, PGconn *, &pgsql_link, id, "PostgreSQL link", le_link, le_plink); - spprintf(&query, 0, "COPY \"%s\" FROM STDIN DELIMITERS '%c' WITH NULL AS '%s'", table_name, *pg_delim, pg_null_as); + spprintf(&query, 0, "COPY \"%s\" FROM STDIN DELIMITERS E'%c' WITH NULL AS E'%s'", table_name, *pg_delim, pg_null_as); while ((pgsql_result = PQgetResult(pgsql))) { PQclear(pgsql_result); } |