]> granicus.if.org Git - php/commitdiff
Leave "" (null string) when converting.
authorYasuo Ohgaki <yohgaki@php.net>
Fri, 19 Apr 2002 07:47:53 +0000 (07:47 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Fri, 19 Apr 2002 07:47:53 +0000 (07:47 +0000)
ext/pgsql/pgsql.c

index 51fe1ef421cd13439b0820f4302d3b2e560cea77..cbdad171f81050586849d00c6ba7e9981940b6aa 100644 (file)
@@ -3180,7 +3180,7 @@ PHPAPI int php_pgsql_convert(PGconn *pg_link, const char *table_name, const zval
                                switch (Z_TYPE_PP(val)) {
                                        case IS_STRING:
                                                if (Z_STRLEN_PP(val) == 0) {
-                                                       ZVAL_STRING(new_val, "NULL", 1);
+                                                       ZVAL_STRING(new_val, empty_string, 0);
                                                }
                                                else {
                                                        Z_TYPE_P(new_val) = IS_STRING;