Fix DDL generation in case of an empty arguments function. (#1690)

This commit is contained in:
Rémy SAISSY 2025-01-30 07:50:30 +01:00 committed by GitHub
parent 252fdbab82
commit a7e984099f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -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}")?;