Browse Source

Remove unneeded conversions from pg_convert.

experimental/new_ui_api
Yasuo Ohgaki 25 years ago
parent
commit
34625daf18
  1. 3
      ext/pgsql/pgsql.c

3
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:

Loading…
Cancel
Save