mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-27 07:59:11 +00:00
Add missing token loc in parse err msg (#965)
This commit is contained in:
parent
25e037c50f
commit
2593dcfb79
1 changed files with 5 additions and 2 deletions
|
@ -1791,9 +1791,12 @@ impl<'a> Parser<'a> {
|
||||||
| BinaryOperator::Eq
|
| BinaryOperator::Eq
|
||||||
| BinaryOperator::NotEq
|
| BinaryOperator::NotEq
|
||||||
) {
|
) {
|
||||||
return parser_err!(format!(
|
return parser_err!(
|
||||||
|
format!(
|
||||||
"Expected one of [=, >, <, =>, =<, !=] as comparison operator, found: {op}"
|
"Expected one of [=, >, <, =>, =<, !=] as comparison operator, found: {op}"
|
||||||
));
|
),
|
||||||
|
tok.location
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(match keyword {
|
Ok(match keyword {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue