mirror of
https://github.com/php/php-src.git
synced 2025-01-13 22:44:36 +08:00
FIX #77047: fixes regex for "time" data type
This commit is contained in:
parent
cf764f02b3
commit
369c991d5c
@ -6267,7 +6267,7 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con
|
||||
ZVAL_STRINGL(&new_val, "NULL", sizeof("NULL")-1);
|
||||
}
|
||||
else {
|
||||
#define REGEX0 "^(([0-9]{1,2}:[0-9]{1,2}){1}(:[0-9]{1,2}){0,1})){0,1}$"
|
||||
#define REGEX0 "^(([0-9]{1,2}:[0-9]{1,2}){1}(:[0-9]{1,2}){0,1}){0,1}$"
|
||||
/* FIXME: better regex must be used */
|
||||
if (php_pgsql_convert_match(Z_STRVAL_P(val), Z_STRLEN_P(val), REGEX0, sizeof(REGEX0)-1, 1) == FAILURE) {
|
||||
err = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user