Skip to content

Commit

Permalink
Chore: make bigquery hex less lenient
Browse files Browse the repository at this point in the history
  • Loading branch information
tobymao committed May 25, 2023
1 parent 543b565 commit 6cce5fc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sqlglot/dialects/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ class Tokenizer(tokens.Tokenizer):
IDENTIFIERS = ["`"]
STRING_ESCAPES = ["\\"]

HEX_STRINGS = [
(prefix + q, q) for q in [""] + t.cast(t.List[str], QUOTES) for prefix in ("0x", "0X")
]
HEX_STRINGS = [("0x", ""), ("0X", "")]

BYTE_STRINGS = [
(prefix + q, q) for q in t.cast(t.List[str], QUOTES) for prefix in ("b", "B")
Expand Down

0 comments on commit 6cce5fc

Please sign in to comment.