Skip to content
New issue

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

SQL Split Failure #753

Open
LiuGaoHui opened this issue Nov 28, 2023 · 0 comments
Open

SQL Split Failure #753

LiuGaoHui opened this issue Nov 28, 2023 · 0 comments

Comments

@LiuGaoHui
Copy link

Describe the bug
SQL Split Failure

To Reproduce
image

import sqlparse
sql="""
update test set name="
" ( " + a + " == null || " + b + " == \"\" ) "
"
where id =1;
update test set name="
" ( " + a + " == null || " + b + " == \"\" ) "
"
where id =2;
update test set name="
" ( " + a + " == null || " + b + " == \"\" ) "
"
where id =3;
"""
len(sqlparse.split(sql))
1

Expected behavior
The output is expected to be 3 but returns 1 instead

Versions (please complete the following information):

  • Python:3.6
  • sqlparse: 0.4.2

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant