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 解析问题, 2 句sql语句被合并 #120

Closed
xiyangxixian opened this issue Nov 23, 2018 · 0 comments
Closed

# 号注释存在 sql 解析问题, 2 句sql语句被合并 #120

xiyangxixian opened this issue Nov 23, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@xiyangxixian
Copy link
Collaborator

xiyangxixian commented Nov 23, 2018

原 sql 语句:

select col from tb where id=1;
# comment
select col from tb;
insert into tb values (1)

结果:

Query: 71A4589327B62D50

★ ★ ★ ★ ★ 100分

SELECT  
  col  
FROM  
  tb  
WHERE  
  id= 1

OK

Query: 8DB67A30B27DA85A

★ ★ ★ ★ ★ 100分

SELECT  
  col  
FROM  
  tb; INSERT  into  tb  
VALUES  
  (1)

OK

@martianzhang martianzhang added the bug Something isn't working label Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants