Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andylokandy committed Sep 10, 2024
1 parent 1021dec commit 1aca0e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/query/ast/src/parser/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ where
input.backtrace.clear();

let err_kind = match err {
PrattError::EmptyInput => ErrorKind::Other("expecting a oprand"),
PrattError::EmptyInput => ErrorKind::Other("expecting an oprand"),
PrattError::UnexpectedNilfix(_) => ErrorKind::Other("unable to parse the element"),
PrattError::UnexpectedPrefix(_) => {
ErrorKind::Other("unable to parse the prefix operator")
Expand Down
4 changes: 2 additions & 2 deletions src/query/ast/tests/it/testdata/expr-error.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ error:
--> SQL:1:3
|
1 | 5 * (a and ) 1
| - ^ expecting a oprand
| - ^ expecting an oprand
| |
| while parsing expression

Expand All @@ -17,7 +17,7 @@ error:
--> SQL:1:5
|
1 | a + +
| - ^ expecting a oprand
| - ^ expecting an oprand
| |
| while parsing expression

Expand Down
2 changes: 1 addition & 1 deletion src/query/ast/tests/it/testdata/query-error.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ error:
--> SQL:1:24
|
1 | select * from customer join where a = b
| ------ ^^^^ expecting a oprand
| ------ ^^^^ expecting an oprand
| |
| while parsing `SELECT ...`

Expand Down

0 comments on commit 1aca0e7

Please sign in to comment.