Skip to content

Commit 0421404

Browse files
author
William Felipe Welter
committed
Fixed bug #68638 pg_update() fails to store infinite values
Fix indent
1 parent 60d5cdf commit 0421404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pgsql/pgsql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5591,7 +5591,7 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con
55915591
else {
55925592
/* FIXME: better regex must be used */
55935593
if (php_pgsql_convert_match(Z_STRVAL_PP(val), Z_STRLEN_PP(val), "^([+-]{0,1}[0-9]+)|([+-]{0,1}[0-9]*[\\.][0-9]+)|([+-]{0,1}[0-9]+[\\.][0-9]*)|([+-]{0,1}(inf)(inity){0,1})$", 1 TSRMLS_CC) == FAILURE) {
5594-
err = 1;
5594+
err = 1;
55955595
}
55965596
else {
55975597
ZVAL_STRING(new_val, Z_STRVAL_PP(val), 1);

0 commit comments

Comments
 (0)