Add EXISTS, ILIKE, DISTINCT to KEYWORDS (closes #3047657)

authorDenis Laxalde <denis.laxalde@logilab.fr>
changesetfe3541a9e098
branchstable
phasedraft
hiddenyes
parent revision#2ce80cbd45f7 prepare 0.31.3
child revision<not specified>
files modified by this revision
utils.py
# HG changeset patch
# User Denis Laxalde <denis.laxalde@logilab.fr>
# Date 1375102673 -7200
# Mon Jul 29 14:57:53 2013 +0200
# Branch stable
# Node ID fe3541a9e098d7e1ee1c376b127eded38f9610b1
# Parent 2ce80cbd45f769b8119a2d37b4fe784e9ad9d291
Add EXISTS, ILIKE, DISTINCT to KEYWORDS (closes #3047657)

diff --git a/utils.py b/utils.py
@@ -59,11 +59,11 @@
1          raise StopIteration()
2 
3  KEYWORDS = set(('INSERT', 'SET', 'DELETE',
4                  'UNION', 'WITH', 'BEING',
5                  'WHERE', 'AND', 'OR', 'NOT'
6 -                'IN', 'LIKE',
7 +                'IN', 'LIKE', 'ILIKE', 'EXISTS', 'DISTINCT',
8                  'TRUE', 'FALSE', 'NULL', 'TODAY',
9                  'GROUPBY', 'HAVING', 'ORDERBY', 'ASC', 'DESC',
10                  'LIMIT', 'OFFSET'))
11 
12