Open yangjiuyi opened 4 years ago
Do we have any update on this issue, comments are not stripped and the query does not split as well when #
example:
import sqlparse
sql = """#comments1
select id
from test_user;
select id
from test_user2; """
query_list = sqlparse.split(sql)
print(query_list)
['#comments1
\nselect id
\nfrom test_user;\nselect id
\nfrom test_user2;']
import sqlparse
sql = """# comments1
select id
from test_user;
select id
from test_user2; """
query_list = sqlparse.split(sql)
print(query_list)
result:
['# comments1
\nselect id
\nfrom test_user;', 'select id
\nfrom test_user2;']
No space after # and a backtick is not working in harmony to split the sql queries
See #596 as well
HI!
output
MySQL support #comments without space after # sqlparse cannt support #comments without space after #?