Skip to content

Commit a79daf3

Browse files
committed
Fix mysql parser IT
1 parent f7f966e commit a79daf3

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

test/it/parser/src/main/resources/case/dml/select-sub-query.xml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -335,18 +335,22 @@
335335

336336
<select sql-case-id="select_with_exists_sub_query_with_project">
337337
<projections start-index="7" stop-index="36">
338-
<subquery-projection start-index="14" stop-index="36" text="EXISTS (SELECT 1 FROM t_order)" literal-text="EXISTS (SELECT 1 FROM t_order)">
339-
<subquery>
340-
<select>
341-
<from>
342-
<simple-table name="t_order" start-index="29" stop-index="35" />
343-
</from>
344-
<projections start-index="22" stop-index="22">
345-
<expression-projection start-index="22" stop-index="22" text="1" />
346-
</projections>
347-
</select>
348-
</subquery>
349-
</subquery-projection>
338+
<expression-projection start-index="7" stop-index="36" text="EXISTS (SELECT 1 FROM t_order)">
339+
<expr>
340+
<exists-subquery start-index="7" stop-index="36">
341+
<subquery start-index="14" stop-index="36">
342+
<select>
343+
<from>
344+
<simple-table name="t_order" start-index="29" stop-index="35" />
345+
</from>
346+
<projections start-index="22" stop-index="22">
347+
<expression-projection start-index="22" stop-index="22" text="1" />
348+
</projections>
349+
</select>
350+
</subquery>
351+
</exists-subquery>
352+
</expr>
353+
</expression-projection>
350354
</projections>
351355
</select>
352356

0 commit comments

Comments
 (0)