From a00bf24ad555f8701607dae22fa39555d4da3bfa Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Tue, 5 May 2009 07:01:39 +0200 Subject: * Added missing SET keyword. * IdentifierList.get_identifiers() now returns not only Identifier instances. --- sqlparse/sql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sqlparse/sql.py') diff --git a/sqlparse/sql.py b/sqlparse/sql.py index d1ee143..52d9b4a 100644 --- a/sqlparse/sql.py +++ b/sqlparse/sql.py @@ -386,7 +386,8 @@ class IdentifierList(TokenList): Whitespaces and punctuations are not included in this list. """ - return [x for x in self.tokens if isinstance(x, Identifier)] + return [x for x in self.tokens + if not x.is_whitespace() and not x.match(T.Punctuation, ',')] class Parenthesis(TokenList): -- cgit v1.2.1