summaryrefslogtreecommitdiff
path: root/sqlparse/engine
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2015-07-26 10:38:54 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2015-07-26 10:38:54 +0200
commit621e1d84607a158491ce80c47814e51a8c366498 (patch)
tree9aede91bf8f59f356f9ec7024bb36ddc4a219f7f /sqlparse/engine
parentd9b717a12da7805d5a37b6b659300e449c42bd2f (diff)
downloadsqlparse-621e1d84607a158491ce80c47814e51a8c366498.tar.gz
Don't treat DECLARE within BEGIN blocks as relevant to split level (fixes #193).
Diffstat (limited to 'sqlparse/engine')
-rw-r--r--sqlparse/engine/filter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/engine/filter.py b/sqlparse/engine/filter.py
index 9af2f99..e7ea0ec 100644
--- a/sqlparse/engine/filter.py
+++ b/sqlparse/engine/filter.py
@@ -40,7 +40,7 @@ class StatementFilter:
unified = value.upper()
- if unified == 'DECLARE' and self._is_create:
+ if unified == 'DECLARE' and self._is_create and self._begin_depth == 0:
self._in_declare = True
return 1