From: Oleg Broytman Date: Wed, 28 Sep 2016 23:38:55 +0000 (+0300) Subject: Clean up StatementGrouper on close X-Git-Tag: 0.0.8~17 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=8a3034769f6006936f2638715f457feeb27fba9d;p=sqlconvert.git Clean up StatementGrouper on close --- diff --git a/sqlconvert/process_tokens.py b/sqlconvert/process_tokens.py index 8cf1fe5..790bf53 100644 --- a/sqlconvert/process_tokens.py +++ b/sqlconvert/process_tokens.py @@ -75,4 +75,6 @@ class StatementGrouper(object): T.Newline, T.Whitespace)): raise ValueError("Incomplete SQL statement: %s" % tokens) + self.lines = [] + self.statements = [] return tokens