]> granicus.if.org Git - php/commitdiff
Remove unneeded conversions from pg_convert.
authorYasuo Ohgaki <yohgaki@php.net>
Mon, 8 Apr 2002 04:21:04 +0000 (04:21 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Mon, 8 Apr 2002 04:21:04 +0000 (04:21 +0000)
ext/pgsql/pgsql.c

index 01dd187e9e0bdc98b2cdb2fa0ed583d15542f68e..51fe1ef421cd13439b0820f4302d3b2e560cea77 100644 (file)
@@ -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: