mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 19:27:21 +00:00
Fix the term 'Modulus' to 'Modulo' (#335)
This commit is contained in:
parent
31549b9241
commit
5ce67177b3
2 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ pub enum BinaryOperator {
|
||||||
Minus,
|
Minus,
|
||||||
Multiply,
|
Multiply,
|
||||||
Divide,
|
Divide,
|
||||||
Modulus,
|
Modulo,
|
||||||
StringConcat,
|
StringConcat,
|
||||||
Gt,
|
Gt,
|
||||||
Lt,
|
Lt,
|
||||||
|
@ -94,7 +94,7 @@ impl fmt::Display for BinaryOperator {
|
||||||
BinaryOperator::Minus => "-",
|
BinaryOperator::Minus => "-",
|
||||||
BinaryOperator::Multiply => "*",
|
BinaryOperator::Multiply => "*",
|
||||||
BinaryOperator::Divide => "/",
|
BinaryOperator::Divide => "/",
|
||||||
BinaryOperator::Modulus => "%",
|
BinaryOperator::Modulo => "%",
|
||||||
BinaryOperator::StringConcat => "||",
|
BinaryOperator::StringConcat => "||",
|
||||||
BinaryOperator::Gt => ">",
|
BinaryOperator::Gt => ">",
|
||||||
BinaryOperator::Lt => "<",
|
BinaryOperator::Lt => "<",
|
||||||
|
|
|
@ -855,7 +855,7 @@ impl<'a> Parser<'a> {
|
||||||
Token::Plus => Some(BinaryOperator::Plus),
|
Token::Plus => Some(BinaryOperator::Plus),
|
||||||
Token::Minus => Some(BinaryOperator::Minus),
|
Token::Minus => Some(BinaryOperator::Minus),
|
||||||
Token::Mult => Some(BinaryOperator::Multiply),
|
Token::Mult => Some(BinaryOperator::Multiply),
|
||||||
Token::Mod => Some(BinaryOperator::Modulus),
|
Token::Mod => Some(BinaryOperator::Modulo),
|
||||||
Token::StringConcat => Some(BinaryOperator::StringConcat),
|
Token::StringConcat => Some(BinaryOperator::StringConcat),
|
||||||
Token::Pipe => Some(BinaryOperator::BitwiseOr),
|
Token::Pipe => Some(BinaryOperator::BitwiseOr),
|
||||||
Token::Caret => Some(BinaryOperator::BitwiseXor),
|
Token::Caret => Some(BinaryOperator::BitwiseXor),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue