Skip to content

Modifying Dialects #281

Closed Answered by tobymao
smeyn asked this question in Q&A
Aug 2, 2022 · 3 comments · 2 replies
Discussion options

You must be logged in to vote
diff --git a/sqlglot/parser.py b/sqlglot/parser.py
index 036b5a1..8d629f5 100644
--- a/sqlglot/parser.py
+++ b/sqlglot/parser.py
@@ -1554,7 +1554,7 @@ class Parser:
         return self._parse_window(this)

     def _parse_extract(self):
-        this = self._parse_var()
+        this = self._parse_var() or self._parse_type()

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by tobymao
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tobymao
Comment options

@tobymao
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants