Samyak2 commented on code in PR #2124:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/2124#discussion_r2669625587


##########
src/parser/mod.rs:
##########
@@ -3847,7 +3847,8 @@ impl<'a> Parser<'a> {
         let lower_bound = if self.consume_token(&Token::Colon) {
             None
         } else {
-            Some(self.parse_expr()?)
+            // parse expr until we hit a colon (or any token with lower 
precedence)
+            
Some(self.parse_subexpr(self.dialect.prec_value(Precedence::Colon))?)

Review Comment:
   These changes actually came from a failing test, but I will add some more 
tests to explicitly look for this behavior.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to