From 051ed12ad2c50eccb38d0d7cd7b2caee26e6ec89 Mon Sep 17 00:00:00 2001 From: Daniel Fiala Date: Tue, 27 Mar 2018 10:49:53 +0200 Subject: [PATCH] cql3/functions: Print function declaration with cql3 types, not with internal types. Signed-off-by: Daniel Fiala Message-Id: <20180327084953.20313-3-daniel@scylladb.com> --- cql3/functions/abstract_function.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cql3/functions/abstract_function.hh b/cql3/functions/abstract_function.hh index b29e76644f..863230b16e 100644 --- a/cql3/functions/abstract_function.hh +++ b/cql3/functions/abstract_function.hh @@ -42,6 +42,7 @@ #pragma once #include "types.hh" +#include "cql3/cql3_type.hh" #include #include #include @@ -105,9 +106,9 @@ abstract_function::print(std::ostream& os) const { if (i > 0) { os << ", "; } - os << _arg_types[i]->name(); // FIXME: asCQL3Type() + os << _arg_types[i]->as_cql3_type()->to_string(); } - os << ") -> " << _return_type->name(); // FIXME: asCQL3Type() + os << ") -> " << _return_type->as_cql3_type()->to_string(); } }