Skip to content

Commit 369c991

Browse files
wildflowerbananaweltling
authored andcommitted
FIX #77047: fixes regex for "time" data type
1 parent cf764f0 commit 369c991

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
@@ -6267,7 +6267,7 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con
62676267
ZVAL_STRINGL(&new_val, "NULL", sizeof("NULL")-1);
62686268
}
62696269
else {
6270-
#define REGEX0 "^(([0-9]{1,2}:[0-9]{1,2}){1}(:[0-9]{1,2}){0,1})){0,1}$"
6270+
#define REGEX0 "^(([0-9]{1,2}:[0-9]{1,2}){1}(:[0-9]{1,2}){0,1}){0,1}$"
62716271
/* FIXME: better regex must be used */
62726272
if (php_pgsql_convert_match(Z_STRVAL_P(val), Z_STRLEN_P(val), REGEX0, sizeof(REGEX0)-1, 1) == FAILURE) {
62736273
err = 1;

0 commit comments

Comments
 (0)