Skip to content

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

@xiyangxixian

Description

@xiyangxixian

原 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions