]> git.phdru.name Git - sqlconvert.git/commitdiff
Clean up StatementGrouper on close
authorOleg Broytman <phd@phdru.name>
Wed, 28 Sep 2016 23:38:55 +0000 (02:38 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 28 Sep 2016 23:38:55 +0000 (02:38 +0300)
sqlconvert/process_tokens.py

index 8cf1fe5e73ffd005a717115fdbf8c114ffe24783..790bf53f8750bb27b5add60f8672989189169155 100644 (file)
@@ -75,4 +75,6 @@ class StatementGrouper(object):
                                     T.Newline, T.Whitespace)):
                 raise ValueError("Incomplete SQL statement: %s" %
                                  tokens)
+        self.lines = []
+        self.statements = []
         return tokens