cvs: php-src(PHP_5_2) / NEWS /ext/pgsql pgsql.c
| From: | Ilia Alshanetsky | Date: | Thu, 12 Mar 2009 22:54:15 +0000 |
| Subject: | cvs: php-src(PHP_5_2) / NEWS /ext/pgsql pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-56495@lists.php.net to get a copy of this message | ||
iliaa Thu Mar 12 22:54:15 2009 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/pgsql pgsql.c
/php-src NEWS
Log:
MFB: Fixed bug #47639 (pg_copy_from() WARNING: nonstandard use of \\ in a string
literal)
http://cvs.php.net/viewvc.cgi/php-src/ext/pgsql/pgsql.c?r1=1.331.2.13.2.36&r2=1.331.2.13.2.37&diff_format=u
Index: php-src/ext/pgsql/pgsql.c
diff -u php-src/ext/pgsql/pgsql.c:1.331.2.13.2.36 php-src/ext/pgsql/pgsql.c:1.331.2.13.2.37
--- php-src/ext/pgsql/pgsql.c:1.331.2.13.2.36 Tue Jan 27 14:44:07 2009
+++ php-src/ext/pgsql/pgsql.c Thu Mar 12 22:54:15 2009
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.331.2.13.2.36 2009/01/27 14:44:07 felipe Exp $ */
+/* $Id: pgsql.c,v 1.331.2.13.2.37 2009/03/12 22:54:15 iliaa Exp $ */
#include <stdlib.h>
@@ -3469,7 +3469,7 @@
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);
}
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1434&r2=1.2027.2.547.2.1435&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.1434 php-src/NEWS:1.2027.2.547.2.1435
--- php-src/NEWS:1.2027.2.547.2.1434 Sun Mar 8 18:22:26 2009
+++ php-src/NEWS Thu Mar 12 22:54:15 2009
@@ -3,6 +3,8 @@
?? ??? 2009, PHP 5.2.10
- Fixed memory corruptions while reading properties of zip files. (Ilia)
+- Fixed bug #47639 (pg_copy_from() WARNING: nonstandard use of \\ in a string
+ literal). (Ilia)
- Fixed bug #47598 (FILTER_VALIDATE_EMAIL is locale aware). (Ilia)
- Fixed bug #47546 (Default value for limit parameter in explode is 0, not -1).
(Kalle)