mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
Fixed bug #47639 (pg_copy_from() WARNING: nonstandard use of \\ in a string
literal)
This commit is contained in:
parent
1df58d629a
commit
8610935eac
1 changed files with 1 additions and 1 deletions
|
@ -3890,7 +3890,7 @@ PHP_FUNCTION(pg_copy_from)
|
||||||
|
|
||||||
ZEND_FETCH_RESOURCE2(pgsql, PGconn *, &pgsql_link, id, "PostgreSQL link", le_link, le_plink);
|
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))) {
|
while ((pgsql_result = PQgetResult(pgsql))) {
|
||||||
PQclear(pgsql_result);
|
PQclear(pgsql_result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue