Skip to content

Commit e3911c4

Browse files
committed
chore: fix unit test
1 parent 21eb23f commit e3911c4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/query/ast/src/parser/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ pub fn literal(i: Input) -> IResult<Literal> {
18381838
NULL => null.parse(i),
18391839
);
18401840

1841-
Err(nom::Err::Error(Error::from_error_kind(i, ErrorKind::Other("expecting `LiteralString`, 'LiteralCodeString', 'LiteralInteger', 'LiteralFloat', 'TRUE', 'FALSE', or more ..."))))
1841+
Err(nom::Err::Error(Error::from_error_kind(i, ErrorKind::Other("expecting `<LiteralString>`, '<LiteralCodeString>', '<LiteralInteger>', '<LiteralFloat>', 'TRUE', 'FALSE', or more ..."))))
18421842
}
18431843

18441844
pub fn literal_hex_str(i: Input) -> IResult<&str> {

src/query/ast/tests/it/testdata/expr-error.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ error:
5252
--> SQL:1:10
5353
|
5454
1 | CAST(col1)
55-
| ---- ^ unexpected `)`, expecting <Ident>, <LiteralString>, `IDENTIFIER`, `ColumnPosition`, `ROW`, `[`, <LiteralFloat>, `:`, <LiteralCodeString>, `TRUE`, `FALSE`, <LiteralInteger>, <MySQLLiteralHex>, <PGLiteralHex>, `NULL`, `AS`, or `,`
55+
| ---- ^ expecting `<LiteralString>`, '<LiteralCodeString>', '<LiteralInteger>', '<LiteralFloat>', 'TRUE', 'FALSE', or more ...
5656
| |
5757
| while parsing `function(... [ , x -> ... ] ) [ (...) ] [ WITHIN GROUP ( ORDER BY <expr>, ... ) ] [ OVER ([ PARTITION BY <expr>, ... ] [ ORDER BY <expr>, ... ] [ <window frame> ]) ]`
5858
| while parsing expression
@@ -79,7 +79,7 @@ error:
7979
1 | $ abc + 3
8080
| ^
8181
| |
82-
| unexpected `$`, expecting `ColumnPosition`, `ROW`, <Ident>, <LiteralString>, `IDENTIFIER`, `[`, <LiteralFloat>, `:`, <LiteralCodeString>, `TRUE`, `FALSE`, <LiteralInteger>, <MySQLLiteralHex>, <PGLiteralHex>, or `NULL`
82+
| expecting `<LiteralString>`, '<LiteralCodeString>', '<LiteralInteger>', '<LiteralFloat>', 'TRUE', 'FALSE', or more ...
8383
| while parsing expression
8484

8585

src/query/ast/tests/it/testdata/stmt-error.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ error:
608608
--> SQL:1:41
609609
|
610610
1 | SELECT * FROM t GROUP BY GROUPING SETS ()
611-
| ------ ^ unexpected `)`, expecting `(`, `ColumnPosition`, `ROW`, <Ident>, <LiteralString>, `IDENTIFIER`, `[`, <LiteralFloat>, `:`, <LiteralCodeString>, `TRUE`, `FALSE`, <LiteralInteger>, <MySQLLiteralHex>, <PGLiteralHex>, or `NULL`
611+
| ------ ^ expecting `<LiteralString>`, '<LiteralCodeString>', '<LiteralInteger>', '<LiteralFloat>', 'TRUE', 'FALSE', or more ...
612612
| |
613613
| while parsing `SELECT ...`
614614

0 commit comments

Comments
 (0)