mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-26 15:39:12 +00:00
fix(Dialect): fix a typo (precendence -> precedence) (#794)
* fix(Dialect): fix a typo * fix: fix a typo in tests
This commit is contained in:
parent
3f874f4ab8
commit
ca939413f2
2 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ pub trait Dialect: Debug + Any {
|
||||||
&self,
|
&self,
|
||||||
_parser: &mut Parser,
|
_parser: &mut Parser,
|
||||||
_expr: &Expr,
|
_expr: &Expr,
|
||||||
_precendence: u8,
|
_precedence: u8,
|
||||||
) -> Option<Result<Expr, ParserError>> {
|
) -> Option<Result<Expr, ParserError>> {
|
||||||
// return None to fall back to the default behavior
|
// return None to fall back to the default behavior
|
||||||
None
|
None
|
||||||
|
|
|
@ -69,7 +69,7 @@ fn custom_infix_parser() -> Result<(), ParserError> {
|
||||||
&self,
|
&self,
|
||||||
parser: &mut Parser,
|
parser: &mut Parser,
|
||||||
expr: &Expr,
|
expr: &Expr,
|
||||||
_precendence: u8,
|
_precedence: u8,
|
||||||
) -> Option<Result<Expr, ParserError>> {
|
) -> Option<Result<Expr, ParserError>> {
|
||||||
if parser.consume_token(&Token::Plus) {
|
if parser.consume_token(&Token::Plus) {
|
||||||
Some(Ok(Expr::BinaryOp {
|
Some(Ok(Expr::BinaryOp {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue