mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user