From 1e6a3a8f9b38df10538a796c2b7c9fca5ccfdec2 Mon Sep 17 00:00:00 2001 From: Julian Date: Thu, 29 Aug 2024 20:05:53 +0200 Subject: [PATCH] Display function return types (#4643) --- core/src/sql/statements/define/function.rs | 3 +++ 1 file changed, 3 insertions(+) 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}")?