We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a3bfbd commit 96a67e2Copy full SHA for 96a67e2
1 file changed
sqlparse/engine/statement_splitter.py
@@ -121,10 +121,11 @@ def process(self, stream):
121
self.consume_ws = True
122
elif ttype is T.Keyword and value.split()[0] == 'GO':
123
124
- elif (ttype not in (T.Whitespace, T.Comment.Single, T.Comment.Multiline)
+ elif (ttype not in (T.Whitespace, T.Comment.Single,
125
+ T.Comment.Multiline)
126
and not (ttype is T.Keyword and value.upper() == 'BEGIN')):
- # Reset _seen_begin if we see a non-whitespace, non-comment token
127
- # but not for BEGIN itself (which just set the flag)
+ # Reset _seen_begin if we see a non-whitespace, non-comment
128
+ # token but not for BEGIN itself (which just set the flag)
129
self._seen_begin = False
130
131
# Yield pending statement (if any)
0 commit comments