diff options
author | Corey Zumar <corey.zumar@databricks.com> | 2019-12-24 16:34:29 -0800 |
---|---|---|
committer | Andi Albrecht <albrecht.andi@gmail.com> | 2020-01-16 09:19:34 +0100 |
commit | 667aee971aedfca140be8c553f683d831adfc927 (patch) | |
tree | b1c28d863b1ecb9761de436a2bf2be2d271c8bf9 /sqlparse | |
parent | 634c74ee7be07b0cb3b55b467a43ef81cc40528b (diff) | |
download | sqlparse-667aee971aedfca140be8c553f683d831adfc927.tar.gz |
Map like and ilike clauses to comparisons
Diffstat (limited to 'sqlparse')
-rw-r--r-- | sqlparse/keywords.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py index 697024f..624650c 100644 --- a/sqlparse/keywords.py +++ b/sqlparse/keywords.py @@ -89,8 +89,8 @@ SQL_REGEX = { r'(EXPLODE|INLINE|PARSE_URL_TUPLE|POSEXPLODE|STACK)\b', tokens.Keyword), (r"(AT|WITH')\s+TIME\s+ZONE\s+'[^']+'", tokens.Keyword.TZCast), + (r'(LIKE|ILIKE)\b', tokens.Operator.Comparison), (r'[0-9_A-ZÀ-Ü][_$#\w]*', is_keyword), - (r'[;:()\[\],\.]', tokens.Punctuation), (r'[<>=~!]+', tokens.Operator.Comparison), (r'[+/@#%^&|`?^-]+', tokens.Operator), |