From a2c7e642dc992d5b3972641144c4b05d6c6623ff Mon Sep 17 00:00:00 2001 From: SivaCoHan Date: Tue, 20 Aug 2024 13:28:35 +0800 Subject: [PATCH] Update column_defs_lowlevel.py par level should decrease when ')' --- examples/column_defs_lowlevel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/column_defs_lowlevel.py b/examples/column_defs_lowlevel.py index 11ff4f38..5b43945c 100644 --- a/examples/column_defs_lowlevel.py +++ b/examples/column_defs_lowlevel.py @@ -27,7 +27,7 @@ def extract_definitions(token_list): if par_level == 0: break else: - par_level += 1 + par_level -= 1 elif token.match(sqlparse.tokens.Punctuation, ','): if tmp: definitions.append(tmp)