summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES6
-rw-r--r--sqlparse/engine/grouping.py1
2 files changed, 4 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 5ee5652..7e1941e 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,9 +2,9 @@ Development
-----------
Bug Fixes
- * Avoid "stair case" effects when identifiers and functions are mixed
- in identifier lists (issue45) and when asterisks are used as
- operators (issue58).
+ * Avoid "stair case" effects when identifiers, functions or keywords
+ are mixed in identifier lists (issue45, issue49) and when asterisks
+ are used as operators (issue58).
* Make keyword detection more restrict (issue47).
* Improve handling of CASE statements (issue46).
* Fix statement splitting when parsing recursive statements (issue57,
diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py
index 499ba8c..923ea63 100644
--- a/sqlparse/engine/grouping.py
+++ b/sqlparse/engine/grouping.py
@@ -194,6 +194,7 @@ def group_identifier_list(tlist):
lambda t: t.ttype == T.Name,
lambda t: t.ttype == T.Wildcard,
lambda t: t.match(T.Keyword, 'null'),
+ lambda t: t.match(T.Keyword, 'role'),
lambda t: t.ttype == T.Number.Integer,
lambda t: t.ttype == T.String.Single,
lambda t: isinstance(t, sql.Comparison),