mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +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::NotEq
|
||||
) {
|
||||
return parser_err!(format!(
|
||||
return parser_err!(
|
||||
format!(
|
||||
"Expected one of [=, >, <, =>, =<, !=] as comparison operator, found: {op}"
|
||||
));
|
||||
),
|
||||
tok.location
|
||||
);
|
||||
};
|
||||
|
||||
Ok(match keyword {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue