cql3/functions: Print function declaration with cql3 types, not with internal types.

Signed-off-by: Daniel Fiala <daniel@scylladb.com>
Message-Id: <20180327084953.20313-3-daniel@scylladb.com>
This commit is contained in:
Daniel Fiala
2018-03-27 10:49:53 +02:00
committed by Avi Kivity
parent 16a7650873
commit 051ed12ad2

View File

@@ -42,6 +42,7 @@
#pragma once
#include "types.hh"
#include "cql3/cql3_type.hh"
#include <vector>
#include <iosfwd>
#include <boost/functional/hash.hpp>
@@ -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();
}
}