You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by gi...@apache.org on 2026/10/16 19:56:03 UTC
(datafusion-sqlparser-rs) 01/01: PostgreSQL: Remove unreachable empty op_types branch in operator FUNCTION items (#2632)
This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-2632-942f36afc03163682d00589e46e3012eee1b06ac
in repository https://gitbox.apache.org/repos/asf/datafusion-sqlparser-rs.git
commit c62f01d936cf1dd476c53991bc3266993e6227dc
Author: Luca Cappelletti <ca...@gmail.com>
AuthorDate: Fri Oct 16 19:55:40 2026 +0000
PostgreSQL: Remove unreachable empty op_types branch in operator FUNCTION items (#2632)
---
src/parser/mod.rs | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/parser/mod.rs b/src/parser/mod.rs
index 30e1bc31..ecd47397 100644
--- a/src/parser/mod.rs
+++ b/src/parser/mod.rs
@@ -7655,9 +7655,6 @@ impl<'a> Parser<'a> {
}
self.expect_token(&Token::RParen)?;
Some(types)
- } else if self.consume_token(&Token::LParen) {
- self.expect_token(&Token::RParen)?;
- Some(vec![])
} else {
None
};
@@ -11925,9 +11922,6 @@ impl<'a> Parser<'a> {
let types = self.parse_comma_separated(Parser::parse_data_type)?;
self.expect_token(&Token::RParen)?;
Some(types)
- } else if self.consume_token(&Token::LParen) {
- self.expect_token(&Token::RParen)?;
- Some(vec![])
} else {
None
};
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org