From dea76adfa5b3c25dd34d7c820410e21364e16d12 Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Sat, 23 Jul 2011 22:56:09 +0200 Subject: Make sure that identifier lists in subselects with alias are grouped correctly. --- sqlparse/engine/grouping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqlparse') diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py index d233772..552a79f 100644 --- a/sqlparse/engine/grouping.py +++ b/sqlparse/engine/grouping.py @@ -170,7 +170,7 @@ def group_identifier(tlist): def group_identifier_list(tlist): [group_identifier_list(sgroup) for sgroup in tlist.get_sublists() - if not isinstance(sgroup, (sql.Identifier, sql.IdentifierList))] + if not isinstance(sgroup, sql.IdentifierList)] idx = 0 # Allowed list items fend1_funcs = [lambda t: isinstance(t, sql.Identifier), -- cgit v1.2.1