diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-04-19 07:47:53 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-04-19 07:47:53 +0000 |
commit | f463be840888f921d74eb5d95bf47b80f6d60431 (patch) | |
tree | d9b51f88d5f2855b74f5344a947dc6dbc0be9e27 /ext/pgsql/pgsql.c | |
parent | 3b75b606d85d81b89384b1dae37e0634d288f6a4 (diff) | |
download | php-git-f463be840888f921d74eb5d95bf47b80f6d60431.tar.gz |
Leave "" (null string) when converting.
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r-- | ext/pgsql/pgsql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 51fe1ef421..cbdad171f8 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -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; |