]> granicus.if.org Git - php/commitdiff
MFH: Missing bit for bug #26625.
authorIlia Alshanetsky <iliaa@php.net>
Mon, 22 Dec 2003 15:56:52 +0000 (15:56 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 22 Dec 2003 15:56:52 +0000 (15:56 +0000)
ext/pgsql/pgsql.c

index 49b906e9f228cc66bbbaa071804e241e3fcf76bc..8aa2795b953078199dc47e577f6d465ae05546f8 100644 (file)
@@ -3631,9 +3631,8 @@ PHPAPI int php_pgsql_convert(PGconn *pg_link, const char *table_name, const zval
                                                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 {