We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
Expected behavior
there are 3 INSERT cmds, but split got just 2.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: