From 8a3034769f6006936f2638715f457feeb27fba9d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 29 Sep 2016 02:38:55 +0300 Subject: [PATCH] Clean up StatementGrouper on close --- sqlconvert/process_tokens.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5