From 7d49521c7097431011e4a28ff69ed5864ae23f33 Mon Sep 17 00:00:00 2001 From: Rushmore Mushambi Date: Sun, 11 Feb 2024 18:27:07 +0200 Subject: [PATCH] Fix the modulo operator on sql2 and parser1 (#3477) --- core/src/syn/v1/operator.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/syn/v1/operator.rs b/core/src/syn/v1/operator.rs index a3624503..6f0412de 100644 --- a/core/src/syn/v1/operator.rs +++ b/core/src/syn/v1/operator.rs @@ -76,6 +76,8 @@ pub fn binary_symbols(i: &str) -> IResult<&str, Operator> { value(Operator::Mul, char('∙')), value(Operator::Div, char('/')), value(Operator::Div, char('÷')), + #[cfg(feature = "sql2")] + value(Operator::Rem, char('%')), )), alt(( value(Operator::Contain, char('∋')),