File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -574,13 +574,13 @@ impl Parser {
574
574
self . expected ( "IN or BETWEEN after NOT" , self . peek_token ( ) )
575
575
}
576
576
}
577
- // Can only happen if `get_precedence ` got out of sync with this function
577
+ // Can only happen if `get_next_precedence ` got out of sync with this function
578
578
_ => panic ! ( "No infix parser for token {:?}" , tok) ,
579
579
}
580
580
} else if Token :: DoubleColon == tok {
581
581
self . parse_pg_cast ( expr)
582
582
} else {
583
- // Can only happen if `get_precedence ` got out of sync with this function
583
+ // Can only happen if `get_next_precedence ` got out of sync with this function
584
584
panic ! ( "No infix parser for token {:?}" , tok)
585
585
}
586
586
}
@@ -636,7 +636,7 @@ impl Parser {
636
636
/// Get the precedence of the next token
637
637
pub fn get_next_precedence ( & self ) -> Result < u8 , ParserError > {
638
638
if let Some ( token) = self . peek_token ( ) {
639
- debug ! ( "get_precedence () {:?}" , token) ;
639
+ debug ! ( "get_next_precedence () {:?}" , token) ;
640
640
641
641
match & token {
642
642
Token :: SQLWord ( k) if k. keyword == "OR" => Ok ( 5 ) ,
You can’t perform that action at this time.
0 commit comments