We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77c9fa2 commit 4953322Copy full SHA for 4953322
e2e_test/udf/python.slt
@@ -177,6 +177,10 @@ drop function gcd;
177
statement ok
178
drop function gcd(int, int);
179
180
+# foo() is different from foo.
181
+statement error function not found
182
+drop function gcd();
183
+
184
# Drop a function without arguments. Now the function name is unique.
185
186
drop function gcd;
src/sqlparser/src/parser.rs
@@ -2108,7 +2108,7 @@ impl Parser {
2108
2109
let args = if self.consume_token(&Token::LParen) {
2110
if self.consume_token(&Token::RParen) {
2111
- None
+ Some(vec![])
2112
} else {
2113
let args = self.parse_comma_separated(Parser::parse_function_arg)?;
2114
self.expect_token(&Token::RParen)?;
0 commit comments