diff options
| author | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-08-22 19:55:37 -0700 |
|---|---|---|
| committer | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-08-22 19:55:37 -0700 |
| commit | 31830af6355557ec159d2173b12ad1437f49b447 (patch) | |
| tree | aecbde15ea2ea32e53a4533f0a045a46f7bf8053 /sqlparse/engine | |
| parent | e29fbf01a7eba050782eca3e0a3c250763ce23ac (diff) | |
| download | sqlparse-31830af6355557ec159d2173b12ad1437f49b447.tar.gz | |
Fix #284 as grouping
Diffstat (limited to 'sqlparse/engine')
| -rw-r--r-- | sqlparse/engine/grouping.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py index 42305c3..7cbcc6b 100644 --- a/sqlparse/engine/grouping.py +++ b/sqlparse/engine/grouping.py @@ -121,7 +121,7 @@ def group_as(tlist): def valid_next(token): ttypes = T.DML, T.DDL - return not imt(token, t=ttypes) + return not imt(token, t=ttypes) and token is not None def post(tlist, pidx, tidx, nidx): return pidx, nidx |
