diff --git a/core/src/sql/statements/define/function.rs b/core/src/sql/statements/define/function.rs index 0b2e6b09..07b62a93 100644 --- a/core/src/sql/statements/define/function.rs +++ b/core/src/sql/statements/define/function.rs @@ -90,6 +90,9 @@ impl fmt::Display for DefineFunctionStatement { write!(f, "${name}: {kind}")?; } f.write_str(") ")?; + if let Some(ref v) = self.returns { + write!(f, "-> {v} ")?; + } Display::fmt(&self.block, f)?; if let Some(ref v) = self.comment { write!(f, " COMMENT {v}")?