From: Yasuo Ohgaki Date: Mon, 8 Apr 2002 04:21:04 +0000 (+0000) Subject: Remove unneeded conversions from pg_convert. X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~796 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34625daf185b8f60c724aac9e3eff9d3786cd046;p=php Remove unneeded conversions from pg_convert. --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 01dd187e9e..51fe1ef421 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -3107,7 +3107,6 @@ PHPAPI int php_pgsql_convert(PGconn *pg_link, const char *table_name, const zval } else { ZVAL_STRING(new_val, Z_STRVAL_PP(val), 1); - convert_to_long_ex(&new_val); } } break; @@ -3150,14 +3149,12 @@ PHPAPI int php_pgsql_convert(PGconn *pg_link, const char *table_name, const zval } else { ZVAL_STRING(new_val, Z_STRVAL_PP(val), 1); - convert_to_double_ex(&new_val); } } break; case IS_LONG: ZVAL_LONG(new_val, Z_DVAL_PP(val)); - convert_to_double_ex(&new_val); break; case IS_DOUBLE: