Fix the modulo operator on sql2 and parser1 (#3477)

This commit is contained in:
Rushmore Mushambi 2024-02-11 18:27:07 +02:00 committed by GitHub
parent 634a2baeac
commit 7d49521c70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,6 +76,8 @@ pub fn binary_symbols(i: &str) -> IResult<&str, Operator> {
value(Operator::Mul, char('∙')), value(Operator::Mul, char('∙')),
value(Operator::Div, char('/')), value(Operator::Div, char('/')),
value(Operator::Div, char('÷')), value(Operator::Div, char('÷')),
#[cfg(feature = "sql2")]
value(Operator::Rem, char('%')),
)), )),
alt(( alt((
value(Operator::Contain, char('∋')), value(Operator::Contain, char('∋')),