diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-12-22 15:56:51 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-12-22 15:56:51 +0000 |
commit | 57b7eb9dc3670ba5e7b4b146dce15b3838d6a0f4 (patch) | |
tree | 7ea114b430b808b2262b94685a87252f7fc7430a | |
parent | 4534d0d0c457041f668dae6d1973ff621f315bf2 (diff) | |
download | php-git-57b7eb9dc3670ba5e7b4b146dce15b3838d6a0f4.tar.gz |
Missing bit for bug #26625.
-rw-r--r-- | ext/pgsql/pgsql.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index cc1093f31a..ff63d631af 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -3772,9 +3772,8 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con if (Z_STRLEN_PP(val) == 0) { if (opt & PGSQL_CONV_FORCE_NULL) { ZVAL_STRING(new_val, "NULL", 1); - } - else { - ZVAL_STRING(new_val, empty_string, 1); + } else { + ZVAL_STRING(new_val, "''", 1); } } else { |