Open popolong opened 2 months ago
Describe the bug split() return the wrong sql-command count.
To Reproduce content = """ INSERT INTO table VALUES (1, '1', ''); INSERT INTO table VALUES (2, '2', ':/\'); INSERT INTO table VALUES (3, '3', 'abc');""" stmts = sqlparse.split(content) print(f"total {len(stmts)} stmt(s)") # got 2 , but should be 3
table
Expected behavior there are 3 INSERT cmds, but split got just 2.
Versions (please complete the following information):
Describe the bug split() return the wrong sql-command count.
To Reproduce content = """ INSERT INTO
table
VALUES (1, '1', ''); INSERT INTOtable
VALUES (2, '2', ':/\'); INSERT INTOtable
VALUES (3, '3', 'abc');""" stmts = sqlparse.split(content) print(f"total {len(stmts)} stmt(s)") # got 2 , but should be 3Expected behavior there are 3 INSERT cmds, but split got just 2.
Versions (please complete the following information):