mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-23 11:12:51 +00:00
Fix DDL generation in case of an empty arguments function. (#1690)
This commit is contained in:
parent
252fdbab82
commit
a7e984099f
2 changed files with 3 additions and 0 deletions
|
|
@ -2011,6 +2011,8 @@ impl fmt::Display for CreateFunction {
|
|||
)?;
|
||||
if let Some(args) = &self.args {
|
||||
write!(f, "({})", display_comma_separated(args))?;
|
||||
} else {
|
||||
write!(f, "()")?;
|
||||
}
|
||||
if let Some(return_type) = &self.return_type {
|
||||
write!(f, " RETURNS {return_type}")?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue