mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-07 04:30:24 +00:00
Fix for Postgres regex and like binary operators (#1928)
This commit is contained in:
parent
650681422a
commit
4d9338638f
2 changed files with 55 additions and 15 deletions
|
@ -3486,10 +3486,18 @@ impl<'a> Parser<'a> {
|
|||
| BinaryOperator::LtEq
|
||||
| BinaryOperator::Eq
|
||||
| BinaryOperator::NotEq
|
||||
| BinaryOperator::PGRegexMatch
|
||||
| BinaryOperator::PGRegexIMatch
|
||||
| BinaryOperator::PGRegexNotMatch
|
||||
| BinaryOperator::PGRegexNotIMatch
|
||||
| BinaryOperator::PGLikeMatch
|
||||
| BinaryOperator::PGILikeMatch
|
||||
| BinaryOperator::PGNotLikeMatch
|
||||
| BinaryOperator::PGNotILikeMatch
|
||||
) {
|
||||
return parser_err!(
|
||||
format!(
|
||||
"Expected one of [=, >, <, =>, =<, !=] as comparison operator, found: {op}"
|
||||
"Expected one of [=, >, <, =>, =<, !=, ~, ~*, !~, !~*, ~~, ~~*, !~~, !~~*] as comparison operator, found: {op}"
|
||||
),
|
||||
span.start
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue