diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2009-05-05 07:01:39 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2009-05-05 07:01:39 +0200 |
| commit | a00bf24ad555f8701607dae22fa39555d4da3bfa (patch) | |
| tree | 9aa4db03d2aff6fc293c98583fa905058a9d5674 /sqlparse/sql.py | |
| parent | c8c23529249f4554f61b79121e78ff5192dc3bbe (diff) | |
| download | sqlparse-a00bf24ad555f8701607dae22fa39555d4da3bfa.tar.gz | |
* Added missing SET keyword.
* IdentifierList.get_identifiers() now returns not only Identifier instances.
Diffstat (limited to 'sqlparse/sql.py')
| -rw-r--r-- | sqlparse/sql.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |
