We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 970c9c2 commit 9cf6f4eCopy full SHA for 9cf6f4e
sqlglot/parser.py
@@ -289,7 +289,7 @@ class Parser(metaclass=_Parser):
289
RESERVED_TOKENS = {
290
*Tokenizer.SINGLE_TOKENS.values(),
291
TokenType.SELECT,
292
- }
+ } - {TokenType.IDENTIFIER}
293
294
DB_CREATABLES = {
295
TokenType.DATABASE,
@@ -4388,7 +4388,10 @@ def _parse_function_call(
4388
4389
return None
4390
4391
- if not any_token and token_type not in self.FUNC_TOKENS:
+ if any_token:
4392
+ if token_type in self.RESERVED_TOKENS:
4393
+ return None
4394
+ elif token_type not in self.FUNC_TOKENS:
4395
4396
4397
self._advance(2)
0 commit comments