Skip to content

Commit 667aee9

Browse files
dbczumarandialbrecht
authored andcommitted
Map like and ilike clauses to comparisons
1 parent 634c74e commit 667aee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlparse/keywords.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def is_keyword(value):
8989
r'(EXPLODE|INLINE|PARSE_URL_TUPLE|POSEXPLODE|STACK)\b',
9090
tokens.Keyword),
9191
(r"(AT|WITH')\s+TIME\s+ZONE\s+'[^']+'", tokens.Keyword.TZCast),
92+
(r'(LIKE|ILIKE)\b', tokens.Operator.Comparison),
9293
(r'[0-9_A-ZÀ-Ü][_$#\w]*', is_keyword),
93-
9494
(r'[;:()\[\],\.]', tokens.Punctuation),
9595
(r'[<>=~!]+', tokens.Operator.Comparison),
9696
(r'[+/@#%^&|`?^-]+', tokens.Operator),

0 commit comments

Comments
 (0)