-
Notifications
You must be signed in to change notification settings - Fork 694
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
sqlparse.split can't split sqls correctly in one case #588
Comments
hm... I can't reproduce this issue:
|
it doesn't work with ` backtick quotes.
|
ah! Thanks! They were eaten up by githubs markdown machinery 😋 |
hm... but still not reproducable by me 🤔
|
could you test with sqls2="grant insert,update,delete on `test`.`test1` to `lili`@`192.168.11.23`; grant update,insert,select on `test1`.`test2` to `lili2`@`10.10.11.12`;" ? |
Thanks! I can reproduce it with the statement above. Here's a little bit more simplified example:
|
for example:
sqls2="grant insert,update,delete on test.test1 to lili@
192.168.11.23
; grant update,insert,select on test1.test2 to lili2@10.10.11.12
;"for st in sp.split(sqls2):
... print(st)
...
grant insert,update,delete on test.test1 to lili@
192.168.11.23
; grant update,insert,select on test1.test2 to lili2@10.10.11.12
; ---------in one line stillsqls2="grant insert,update,delete on test.test1 to lili@
192.%
; grant update,insert,select on test1.test2 to lili2@10.10.11.12
;"for st in sp.split(sqls2):
... print(st)
...
grant insert,update,delete on test.test1 to lili@
192.%
;grant update,insert,select on test1.test2 to lili2@
10.10.11.12
; ----have been splited into. two linesthe differnence between two sqls is :
first sqls2 : lili@
192.168.11.23
second sqls2: lili@
192.%
sqlparse version is:
print(sp.version)
0.4.1
The text was updated successfully, but these errors were encountered: