Skip to content

Commit c532fbc

Browse files
committed
add test for parsing BEGIN, ROLLBACK, COMMIT statements
1 parent 88901a9 commit c532fbc

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
BEGIN;
2+
3+
SELECT 1;
4+
5+
ROLLBACK;
6+
7+
COMMIT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
source: crates/parser/tests/statement_parser_test.rs
3+
description: "BEGIN;\n\nSELECT 1;\n\nROLLBACK;\n\nCOMMIT;"
4+
---
5+
Stmt@0..37
6+
BeginP@0..5 "BEGIN"
7+
Ascii59@5..6 ";"
8+
Newline@6..8 "\n\n"
9+
Select@8..14 "SELECT"
10+
Whitespace@14..15 " "
11+
Iconst@15..16 "1"
12+
Ascii59@16..17 ";"
13+
Newline@17..19 "\n\n"
14+
Rollback@19..27 "ROLLBACK"
15+
Ascii59@27..28 ";"
16+
Newline@28..30 "\n\n"
17+
Commit@30..36 "COMMIT"
18+
Ascii59@36..37 ";"
19+

0 commit comments

Comments
 (0)