|
|
|
@ -6445,6 +6445,9 @@ static inline void build_tablename(smart_str *querystr, PGconn *pg_link, const c |
|
|
|
/* schame.table should be "schame"."table" */ |
|
|
|
table_copy = estrdup(table); |
|
|
|
token = php_strtok_r(table_copy, ".", &tmp); |
|
|
|
if (token == NULL) { |
|
|
|
token = table; |
|
|
|
} |
|
|
|
len = strlen(token); |
|
|
|
if (_php_pgsql_detect_identifier_escape(token, len) == SUCCESS) { |
|
|
|
smart_str_appendl(querystr, token, len); |
|
|
|
|