summaryrefslogtreecommitdiffstats
path: root/sqlglot/tokens.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-26 17:21:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-26 17:21:54 +0000
commitc03ba18c491e52cc85d8aae1825dd9e0b4f75e32 (patch)
treef76d58b50900be4bfd2dc15f0ec38d1a70d8417b /sqlglot/tokens.py
parentReleasing debian version 18.13.0-1. (diff)
downloadsqlglot-c03ba18c491e52cc85d8aae1825dd9e0b4f75e32.tar.xz
sqlglot-c03ba18c491e52cc85d8aae1825dd9e0b4f75e32.zip
Merging upstream version 18.17.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglot/tokens.py')
-rw-r--r--sqlglot/tokens.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlglot/tokens.py b/sqlglot/tokens.py
index c883858..9784c63 100644
--- a/sqlglot/tokens.py
+++ b/sqlglot/tokens.py
@@ -1077,10 +1077,10 @@ class Tokenizer(metaclass=_Tokenizer):
literal = ""
while self._peek.strip() and self._peek not in self.SINGLE_TOKENS:
- literal += self._peek.upper()
+ literal += self._peek
self._advance()
- token_type = self.KEYWORDS.get(self.NUMERIC_LITERALS.get(literal, ""))
+ token_type = self.KEYWORDS.get(self.NUMERIC_LITERALS.get(literal.upper(), ""))
if token_type:
self._add(TokenType.NUMBER, number_text)