You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1458,7 +1458,7 @@ private function isIdentifierEscapeExempt(string $item): bool
1458
1458
// SQL functions or subqueries (e.g. MAX(id), (SELECT ...)) with an optional alias
1459
1459
if (str_contains($item, '(')) {
1460
1460
// Regex matching balanced parentheses (from start to end or with a safe alias)
1461
-
if (preg_match('/^(?:[a-zA-Z0-9_.]+\s*)?(?P<parens>\((?:[^()]+|(?&parens))*\))(?:\s+(?:AS\s+)?(?:[a-zA-Z0-9_.]+|"[^"]*"|\'[^\']*\'|`[^`]*`))?$/is', $item)) {
1461
+
if (preg_match('/^(?:[a-zA-Z0-9_.]+\s*)?(?P<parens>\((?:[^()]+|(?&parens))*\))(?:\s+AS\s+(?:[a-zA-Z0-9_.]+|"[^"]*"|\'[^\']*\'|`[^`]*`))?$/is', $item)) {
0 commit comments