Skip to content

Commit fff04d0

Browse files
committed
missing ascii59
1 parent 4390fc6 commit fff04d0

File tree

84 files changed

+471
-757
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+471
-757
lines changed

Diff for: crates/parser/tests/snapshots/statements/valid/[email protected]

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
source: crates/parser/tests/statement_parser_test.rs
3-
description: "SELECT city, count(*) FILTER (WHERE temp_lo < 45), max(temp_lo)\n FROM weather\n GROUP BY city"
3+
description: "SELECT city, count(*) FILTER (WHERE temp_lo < 45), max(temp_lo)\n FROM weather\n GROUP BY city;"
44
---
55
Parse {
6-
cst: SourceFile@0..98
7-
SelectStmt@0..98
6+
cst: SourceFile@0..99
7+
SelectStmt@0..99
88
Select@0..6 "SELECT"
99
Whitespace@6..7 " "
1010
ResTarget@7..11
@@ -56,13 +56,9 @@ Parse {
5656
Whitespace@93..94 " "
5757
ColumnRef@94..98
5858
Ident@94..98 "city"
59+
Ascii59@98..99 ";"
5960
,
60-
errors: [
61-
SyntaxError(
62-
"Expected Ascii59, found Token {\n kind: Eof,\n text: \"\",\n span: 98..98,\n token_type: Whitespace,\n}",
63-
94..94,
64-
),
65-
],
61+
errors: [],
6662
stmts: [
6763
RawStmt {
6864
stmt: SelectStmt(
@@ -328,7 +324,7 @@ Parse {
328324
rarg: None,
329325
},
330326
),
331-
range: 0..97,
327+
range: 0..98,
332328
},
333329
],
334330
}

Diff for: crates/parser/tests/snapshots/statements/valid/[email protected]

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
source: crates/parser/tests/statement_parser_test.rs
3-
description: "COPY weather FROM '/home/user/weather.txt'"
3+
description: "COPY weather FROM '/home/user/weather.txt';"
44
---
55
Parse {
6-
cst: SourceFile@0..42
7-
CopyStmt@0..42
6+
cst: SourceFile@0..43
7+
CopyStmt@0..43
88
Copy@0..4 "COPY"
99
Whitespace@4..5 " "
1010
RangeVar@5..12
@@ -13,13 +13,9 @@ Parse {
1313
From@13..17 "FROM"
1414
Whitespace@17..18 " "
1515
Sconst@18..42 "'/home/user/weather.txt'"
16+
Ascii59@42..43 ";"
1617
,
17-
errors: [
18-
SyntaxError(
19-
"Expected Ascii59, found Token {\n kind: Eof,\n text: \"\",\n span: 42..42,\n token_type: Whitespace,\n}",
20-
18..18,
21-
),
22-
],
18+
errors: [],
2319
stmts: [
2420
RawStmt {
2521
stmt: CopyStmt(
@@ -44,7 +40,7 @@ Parse {
4440
where_clause: None,
4541
},
4642
),
47-
range: 0..41,
43+
range: 0..42,
4844
},
4945
],
5046
}

Diff for: crates/parser/tests/snapshots/statements/valid/[email protected]

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
source: crates/parser/tests/statement_parser_test.rs
3-
description: "CREATE TABLE weather (\n city varchar(80) references cities(name),\n temp_lo int,\n temp_hi int,\n prcp real,\n date date\n)"
3+
description: "CREATE TABLE weather (\n city varchar(80) references cities(name),\n temp_lo int,\n temp_hi int,\n prcp real,\n date date\n);"
44
---
55
Parse {
6-
cst: SourceFile@0..172
7-
CreateStmt@0..172
6+
cst: SourceFile@0..173
7+
CreateStmt@0..173
88
Create@0..6 "CREATE"
99
Whitespace@6..7 " "
1010
Table@7..12 "TABLE"
@@ -67,13 +67,9 @@ Parse {
6767
Ident@166..170 "date"
6868
Newline@170..171 "\n"
6969
Ascii41@171..172 ")"
70+
Ascii59@172..173 ";"
7071
,
71-
errors: [
72-
SyntaxError(
73-
"Expected Ascii59, found Token {\n kind: Eof,\n text: \"\",\n span: 172..172,\n token_type: Whitespace,\n}",
74-
171..171,
75-
),
76-
],
72+
errors: [],
7773
stmts: [
7874
RawStmt {
7975
stmt: CreateStmt(
@@ -451,7 +447,7 @@ Parse {
451447
if_not_exists: false,
452448
},
453449
),
454-
range: 0..171,
450+
range: 0..172,
455451
},
456452
],
457453
}

Diff for: crates/parser/tests/snapshots/statements/valid/[email protected]

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
source: crates/parser/tests/statement_parser_test.rs
3-
description: "CREATE VIEW myview AS\n SELECT name, location\n FROM weather, cities\n WHERE city = name"
3+
description: "CREATE VIEW myview AS\n SELECT name, location\n FROM weather, cities\n WHERE city = name;"
44
---
55
Parse {
6-
cst: SourceFile@0..98
6+
cst: SourceFile@0..99
77
Create@0..6 "CREATE"
88
Whitespace@6..7 " "
99
View@7..11 "VIEW"
@@ -12,7 +12,7 @@ Parse {
1212
Whitespace@18..19 " "
1313
As@19..21 "AS"
1414
Newline@21..22 "\n"
15-
SelectStmt@22..98
15+
SelectStmt@22..99
1616
Select@22..28 "SELECT"
1717
Whitespace@28..29 " "
1818
ResTarget@29..33
@@ -45,6 +45,7 @@ Parse {
4545
Whitespace@93..94 " "
4646
ColumnRef@94..98
4747
NameP@94..98 "name"
48+
Ascii59@98..99 ";"
4849
,
4950
errors: [
5051
SyntaxError(
@@ -55,10 +56,6 @@ Parse {
5556
"Invalid statement: syntax error at end of input",
5657
0..8,
5758
),
58-
SyntaxError(
59-
"Expected Ascii59, found Token {\n kind: Eof,\n text: \"\",\n span: 102..102,\n token_type: Whitespace,\n}",
60-
98..98,
61-
),
6259
],
6360
stmts: [
6461
RawStmt {
@@ -250,7 +247,7 @@ Parse {
250247
rarg: None,
251248
},
252249
),
253-
range: 25..101,
250+
range: 25..102,
254251
},
255252
],
256253
}

Diff for: crates/parser/tests/snapshots/statements/valid/[email protected]

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
source: crates/parser/tests/statement_parser_test.rs
3-
description: "DELETE FROM weather WHERE city = 'Hayward'"
3+
description: "DELETE FROM weather WHERE city = 'Hayward';"
44
---
55
Parse {
6-
cst: SourceFile@0..42
7-
DeleteStmt@0..42
6+
cst: SourceFile@0..43
7+
DeleteStmt@0..43
88
DeleteP@0..6 "DELETE"
99
Whitespace@6..7 " "
1010
From@7..11 "FROM"
@@ -22,13 +22,9 @@ Parse {
2222
Whitespace@32..33 " "
2323
AConst@33..42
2424
Sconst@33..42 "'Hayward'"
25+
Ascii59@42..43 ";"
2526
,
26-
errors: [
27-
SyntaxError(
28-
"Expected Ascii59, found Token {\n kind: Eof,\n text: \"\",\n span: 42..42,\n token_type: Whitespace,\n}",
29-
33..33,
30-
),
31-
],
27+
errors: [],
3228
stmts: [
3329
RawStmt {
3430
stmt: DeleteStmt(
@@ -113,7 +109,7 @@ Parse {
113109
with_clause: None,
114110
},
115111
),
116-
range: 0..41,
112+
range: 0..42,
117113
},
118114
],
119115
}

Diff for: crates/parser/tests/snapshots/statements/valid/[email protected]

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
source: crates/parser/tests/statement_parser_test.rs
3-
description: DROP TABLE tablename
3+
description: DROP TABLE tablename;
44
---
55
Parse {
6-
cst: SourceFile@0..20
6+
cst: SourceFile@0..21
77
Drop@0..4 "DROP"
88
Whitespace@4..5 " "
99
Table@5..10 "TABLE"
1010
Whitespace@10..11 " "
1111
Ident@11..20 "tablename"
12+
Ascii59@20..21 ";"
1213
,
1314
errors: [],
1415
stmts: [],

Diff for: crates/parser/tests/snapshots/statements/valid/[email protected]

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
source: crates/parser/tests/statement_parser_test.rs
3-
description: "CREATE TABLE cities (\n name text,\n population real,\n elevation int -- (in ft)\n)"
3+
description: "CREATE TABLE cities (\n name text,\n population real,\n elevation int -- (in ft)\n);"
44
---
55
Parse {
6-
cst: SourceFile@0..93
7-
CreateStmt@0..93
6+
cst: SourceFile@0..94
7+
CreateStmt@0..94
88
Create@0..6 "CREATE"
99
Whitespace@6..7 " "
1010
Table@7..12 "TABLE"
@@ -40,13 +40,9 @@ Parse {
4040
SqlComment@81..91 "-- (in ft)"
4141
Newline@91..92 "\n"
4242
Ascii41@92..93 ")"
43+
Ascii59@93..94 ";"
4344
,
44-
errors: [
45-
SyntaxError(
46-
"Expected Ascii59, found Token {\n kind: Eof,\n text: \"\",\n span: 93..93,\n token_type: Whitespace,\n}",
47-
92..92,
48-
),
49-
],
45+
errors: [],
5046
stmts: [
5147
RawStmt {
5248
stmt: CreateStmt(
@@ -235,7 +231,7 @@ Parse {
235231
if_not_exists: false,
236232
},
237233
),
238-
range: 0..92,
234+
range: 0..93,
239235
},
240236
],
241237
}

Diff for: crates/parser/tests/snapshots/statements/valid/[email protected]

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
source: crates/parser/tests/statement_parser_test.rs
3-
description: "INSERT INTO weather (date, city, temp_hi, temp_lo)\n VALUES ('1994-11-29', 'Hayward', 54, 37)"
3+
description: "INSERT INTO weather (date, city, temp_hi, temp_lo)\n VALUES ('1994-11-29', 'Hayward', 54, 37);"
44
---
55
Parse {
6-
cst: SourceFile@0..95
7-
InsertStmt@0..95
6+
cst: SourceFile@0..96
7+
InsertStmt@0..96
88
Insert@0..6 "INSERT"
99
Whitespace@6..7 " "
1010
Into@7..11 "INTO"
@@ -50,13 +50,9 @@ Parse {
5050
AConst@92..94
5151
Iconst@92..94 "37"
5252
Ascii41@94..95 ")"
53+
Ascii59@95..96 ";"
5354
,
54-
errors: [
55-
SyntaxError(
56-
"Expected Ascii59, found Token {\n kind: Eof,\n text: \"\",\n span: 95..95,\n token_type: Whitespace,\n}",
57-
94..94,
58-
),
59-
],
55+
errors: [],
6056
stmts: [
6157
RawStmt {
6258
stmt: InsertStmt(
@@ -237,7 +233,7 @@ Parse {
237233
r#override: OverridingNotSet,
238234
},
239235
),
240-
range: 0..94,
236+
range: 0..95,
241237
},
242238
],
243239
}

Diff for: crates/parser/tests/snapshots/statements/valid/[email protected]

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
source: crates/parser/tests/statement_parser_test.rs
3-
description: "SELECT w1.city, w1.temp_lo AS low, w1.temp_hi AS high,\n w2.city, w2.temp_lo AS low, w2.temp_hi AS high\n FROM weather w1 JOIN weather w2\n ON w1.temp_lo < w2.temp_lo AND w1.temp_hi > w2.temp_hi"
3+
description: "SELECT w1.city, w1.temp_lo AS low, w1.temp_hi AS high,\n w2.city, w2.temp_lo AS low, w2.temp_hi AS high\n FROM weather w1 JOIN weather w2\n ON w1.temp_lo < w2.temp_lo AND w1.temp_hi > w2.temp_hi;"
44
---
55
Parse {
6-
cst: SourceFile@0..207
7-
SelectStmt@0..207
6+
cst: SourceFile@0..208
7+
SelectStmt@0..208
88
Select@0..6 "SELECT"
99
Whitespace@6..7 " "
1010
ResTarget@7..14
@@ -114,13 +114,9 @@ Parse {
114114
Ident@197..199 "w2"
115115
Ascii46@199..200 "."
116116
Ident@200..207 "temp_hi"
117+
Ascii59@207..208 ";"
117118
,
118-
errors: [
119-
SyntaxError(
120-
"Expected Ascii59, found Token {\n kind: Eof,\n text: \"\",\n span: 207..207,\n token_type: Whitespace,\n}",
121-
200..200,
122-
),
123-
],
119+
errors: [],
124120
stmts: [
125121
RawStmt {
126122
stmt: SelectStmt(
@@ -640,7 +636,7 @@ Parse {
640636
rarg: None,
641637
},
642638
),
643-
range: 0..206,
639+
range: 0..207,
644640
},
645641
],
646642
}

Diff for: crates/parser/tests/snapshots/statements/valid/[email protected]

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
source: crates/parser/tests/statement_parser_test.rs
3-
description: "INSERT INTO weather VALUES ('San Francisco', 46, 50, 0.25, '1994-11-27')"
3+
description: "INSERT INTO weather VALUES ('San Francisco', 46, 50, 0.25, '1994-11-27');"
44
---
55
Parse {
6-
cst: SourceFile@0..72
7-
InsertStmt@0..72
6+
cst: SourceFile@0..73
7+
InsertStmt@0..73
88
Insert@0..6 "INSERT"
99
Whitespace@6..7 " "
1010
Into@7..11 "INTO"
@@ -36,13 +36,9 @@ Parse {
3636
AConst@59..71
3737
Sconst@59..71 "'1994-11-27'"
3838
Ascii41@71..72 ")"
39+
Ascii59@72..73 ";"
3940
,
40-
errors: [
41-
SyntaxError(
42-
"Expected Ascii59, found Token {\n kind: Eof,\n text: \"\",\n span: 72..72,\n token_type: Whitespace,\n}",
43-
71..71,
44-
),
45-
],
41+
errors: [],
4642
stmts: [
4743
RawStmt {
4844
stmt: InsertStmt(
@@ -191,7 +187,7 @@ Parse {
191187
r#override: OverridingNotSet,
192188
},
193189
),
194-
range: 0..71,
190+
range: 0..72,
195191
},
196192
],
197193
}

0 commit comments

Comments
 (0)