File tree Expand file tree Collapse file tree 5 files changed +75
-80
lines changed
crates/parser/tests/snapshots/statements/valid Expand file tree Collapse file tree 5 files changed +75
-80
lines changed Original file line number Diff line number Diff line change 11-- -
22source : crates / parser / tests / statement_parser_test .rs
3- description : " \n CREATE DATABASE x ENCODING \" SQL_ASCII\" ;"
3+ description : " CREATE DATABASE x ENCODING \" SQL_ASCII\" ;"
44-- -
55Parse {
6- cst : SourceFile @0..40
7- Newline @0..1 " \n "
8- CreatedbStmt @1..40
9- Create @1..7 " CREATE"
10- Whitespace @7..8 " "
11- Database @8..16 " DATABASE"
12- Whitespace @16..17 " "
13- Ident @17..18 " x"
14- Whitespace @18..19 " "
15- DefElem @19..39
16- Encoding @19..27 " ENCODING"
17- Whitespace @27..28 " "
18- Ident @28..39 " \" SQL_ASCII\" "
19- Ascii59 @39..40 " ;"
6+ cst : SourceFile @0..39
7+ CreatedbStmt @0..39
8+ Create @0..6 " CREATE"
9+ Whitespace @6..7 " "
10+ Database @7..15 " DATABASE"
11+ Whitespace @15..16 " "
12+ Ident @16..17 " x"
13+ Whitespace @17..18 " "
14+ DefElem @18..38
15+ Encoding @18..26 " ENCODING"
16+ Whitespace @26..27 " "
17+ Ident @27..38 " \" SQL_ASCII\" "
18+ Ascii59 @38..39 " ;"
2019 ,
2120 errors : [],
2221 stmts : [
@@ -51,7 +50,7 @@ Parse {
5150 ],
5251 },
5352 ),
54- range: 0..39 ,
53+ range: 0..38 ,
5554 },
5655 ],
5756}
Original file line number Diff line number Diff line change 11-- -
22source : crates / parser / tests / statement_parser_test .rs
3- description : " \n CREATE DATABASE x LC_COLLATE \" en_US.UTF-8\" ;"
3+ description : " CREATE DATABASE x LC_COLLATE \" en_US.UTF-8\" ;"
44-- -
55Parse {
6- cst : SourceFile @0..44
7- Newline @0..1 " \n "
8- CreatedbStmt @1..44
9- Create @1..7 " CREATE"
10- Whitespace @7..8 " "
11- Database @8..16 " DATABASE"
12- Whitespace @16..17 " "
13- Ident @17..18 " x"
14- Whitespace @18..19 " "
15- DefElem @19..43
16- Ident @19..29 " LC_COLLATE"
17- Whitespace @29..30 " "
18- Ident @30..43 " \" en_US.UTF-8\" "
19- Ascii59 @43..44 " ;"
6+ cst : SourceFile @0..43
7+ CreatedbStmt @0..43
8+ Create @0..6 " CREATE"
9+ Whitespace @6..7 " "
10+ Database @7..15 " DATABASE"
11+ Whitespace @15..16 " "
12+ Ident @16..17 " x"
13+ Whitespace @17..18 " "
14+ DefElem @18..42
15+ Ident @18..28 " LC_COLLATE"
16+ Whitespace @28..29 " "
17+ Ident @29..42 " \" en_US.UTF-8\" "
18+ Ascii59 @42..43 " ;"
2019 ,
2120 errors : [],
2221 stmts : [
@@ -51,7 +50,7 @@ Parse {
5150 ],
5251 },
5352 ),
54- range: 0..43 ,
53+ range: 0..42 ,
5554 },
5655 ],
5756}
Original file line number Diff line number Diff line change 11-- -
22source : crates / parser / tests / statement_parser_test .rs
3- description : " \n CREATE DATABASE x LOCATION DEFAULT;"
3+ description : CREATE DATABASE x LOCATION DEFAULT ;
44-- -
55Parse {
6- cst : SourceFile @0..36
7- Newline @0..1 " \n "
8- CreatedbStmt @1..36
9- Create @1..7 " CREATE"
10- Whitespace @7..8 " "
11- Database @8..16 " DATABASE"
12- Whitespace @16..17 " "
13- Ident @17..18 " x"
14- Whitespace @18..19 " "
15- DefElem @19..35
16- Location @19..27 " LOCATION"
17- Whitespace @27..28 " "
18- Default @28..35 " DEFAULT"
19- Ascii59 @35..36 " ;"
6+ cst : SourceFile @0..35
7+ CreatedbStmt @0..35
8+ Create @0..6 " CREATE"
9+ Whitespace @6..7 " "
10+ Database @7..15 " DATABASE"
11+ Whitespace @15..16 " "
12+ Ident @16..17 " x"
13+ Whitespace @17..18 " "
14+ DefElem @18..34
15+ Location @18..26 " LOCATION"
16+ Whitespace @26..27 " "
17+ Default @27..34 " DEFAULT"
18+ Ascii59 @34..35 " ;"
2019 ,
2120 errors : [],
2221 stmts : [
@@ -41,7 +40,7 @@ Parse {
4140 ],
4241 },
4342 ),
44- range: 0..35 ,
43+ range: 0..34 ,
4544 },
4645 ],
4746}
Original file line number Diff line number Diff line change 11-- -
22source : crates / parser / tests / statement_parser_test .rs
3- description : " \n CREATE DATABASE x TABLESPACE abc;"
3+ description : CREATE DATABASE x TABLESPACE abc ;
44-- -
55Parse {
6- cst : SourceFile @0..34
7- Newline @0..1 " \n "
8- CreatedbStmt @1..34
9- Create @1..7 " CREATE"
10- Whitespace @7..8 " "
11- Database @8..16 " DATABASE"
12- Whitespace @16..17 " "
13- Ident @17..18 " x"
14- Whitespace @18..19 " "
15- DefElem @19..33
16- Tablespace @19..29 " TABLESPACE"
17- Whitespace @29..30 " "
18- Ident @30..33 " abc"
19- Ascii59 @33..34 " ;"
6+ cst : SourceFile @0..33
7+ CreatedbStmt @0..33
8+ Create @0..6 " CREATE"
9+ Whitespace @6..7 " "
10+ Database @7..15 " DATABASE"
11+ Whitespace @15..16 " "
12+ Ident @16..17 " x"
13+ Whitespace @17..18 " "
14+ DefElem @18..32
15+ Tablespace @18..28 " TABLESPACE"
16+ Whitespace @28..29 " "
17+ Ident @29..32 " abc"
18+ Ascii59 @32..33 " ;"
2019 ,
2120 errors : [],
2221 stmts : [
@@ -51,7 +50,7 @@ Parse {
5150 ],
5251 },
5352 ),
54- range: 0..33 ,
53+ range: 0..32 ,
5554 },
5655 ],
5756}
Original file line number Diff line number Diff line change 11-- -
22source : crates / parser / tests / statement_parser_test .rs
3- description : " \n CREATE DATABASE x TEMPLATE TRUE;"
3+ description : CREATE DATABASE x TEMPLATE TRUE ;
44-- -
55Parse {
6- cst : SourceFile @0..33
7- Newline @0..1 " \n "
8- CreatedbStmt @1..33
9- Create @1..7 " CREATE"
10- Whitespace @7..8 " "
11- Database @8..16 " DATABASE"
12- Whitespace @16..17 " "
13- Ident @17..18 " x"
14- Whitespace @18..19 " "
15- DefElem @19..32
16- Template @19..27 " TEMPLATE"
17- Whitespace @27..28 " "
18- TrueP @28..32 " TRUE"
19- Ascii59 @32..33 " ;"
6+ cst : SourceFile @0..32
7+ CreatedbStmt @0..32
8+ Create @0..6 " CREATE"
9+ Whitespace @6..7 " "
10+ Database @7..15 " DATABASE"
11+ Whitespace @15..16 " "
12+ Ident @16..17 " x"
13+ Whitespace @17..18 " "
14+ DefElem @18..31
15+ Template @18..26 " TEMPLATE"
16+ Whitespace @26..27 " "
17+ TrueP @27..31 " TRUE"
18+ Ascii59 @31..32 " ;"
2019 ,
2120 errors : [],
2221 stmts : [
@@ -51,7 +50,7 @@ Parse {
5150 ],
5251 },
5352 ),
54- range: 0..32 ,
53+ range: 0..31 ,
5554 },
5655 ],
5756}
You can’t perform that action at this time.
0 commit comments