mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 11:17:23 +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,
|
||||
Multiply,
|
||||
Divide,
|
||||
Modulus,
|
||||
Modulo,
|
||||
StringConcat,
|
||||
Gt,
|
||||
Lt,
|
||||
|
@ -94,7 +94,7 @@ impl fmt::Display for BinaryOperator {
|
|||
BinaryOperator::Minus => "-",
|
||||
BinaryOperator::Multiply => "*",
|
||||
BinaryOperator::Divide => "/",
|
||||
BinaryOperator::Modulus => "%",
|
||||
BinaryOperator::Modulo => "%",
|
||||
BinaryOperator::StringConcat => "||",
|
||||
BinaryOperator::Gt => ">",
|
||||
BinaryOperator::Lt => "<",
|
||||
|
|
|
@ -855,7 +855,7 @@ impl<'a> Parser<'a> {
|
|||
Token::Plus => Some(BinaryOperator::Plus),
|
||||
Token::Minus => Some(BinaryOperator::Minus),
|
||||
Token::Mult => Some(BinaryOperator::Multiply),
|
||||
Token::Mod => Some(BinaryOperator::Modulus),
|
||||
Token::Mod => Some(BinaryOperator::Modulo),
|
||||
Token::StringConcat => Some(BinaryOperator::StringConcat),
|
||||
Token::Pipe => Some(BinaryOperator::BitwiseOr),
|
||||
Token::Caret => Some(BinaryOperator::BitwiseXor),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue