提交 28998842 编写于 作者: C codefairy08

add mysql with comment test

上级 cee8e0ce
......@@ -616,4 +616,23 @@
<table-token begin-position="14" original-literals="t_order" />
</tokens>
</parser-result>
<parser-result sql-case-id="select_with_block_comment" >
<tables>
<table name="t_order" />
</tables>
<tokens>
<table-token begin-position="83" original-literals="t_order" />
</tokens>
</parser-result>
<parser-result sql-case-id="select_with_single_comment" >
<tables>
<table name="t_order" />
</tables>
<tokens>
<table-token begin-position="77" original-literals="t_order" />
</tokens>
</parser-result>
</parser-result-sets>
......@@ -34,4 +34,6 @@
<sql-case id="select_with_schema" value="SELECT * FROM db1.t_order" />
<sql-case id="select_escape_with_single_quota" value="SELECT * FROM t_order where status='\''" db-types="MySQL" />
<sql-case id="select_escape_with_double_quota" value="SELECT * FROM t_order where status=&quot;\&quot;&quot;" db-types="MySQL" />
<sql-case id="select_with_block_comment" value="SELECT * /* this is &#x000D;&#x000A; block comment */ FROM /* this is another &#x000A; block comment */ t_order where status=1" db-types="MySQL" />
<sql-case id="select_with_single_comment" value="SELECT * -- this is an line comment &#x000D;&#x000A; FROM --this is another line comment &#x000A; t_order where status=1" db-types="MySQL" />
</sql-cases>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册