Fix wrong implicit cast in query dumper
Summary: All integers are signed in openCypher. Reviewers: buda, llugovic Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2746
This commit is contained in:
parent
d04993df67
commit
39deba3b9e
@ -78,7 +78,7 @@ void DumpPropertyValue(std::ostream *os, const storage::PropertyValue &value) {
|
||||
void DumpProperties(
|
||||
std::ostream *os, query::DbAccessor *dba,
|
||||
const std::map<storage::PropertyId, storage::PropertyValue> &store,
|
||||
std::optional<uint64_t> property_id = std::nullopt) {
|
||||
std::optional<int64_t> property_id = std::nullopt) {
|
||||
*os << "{";
|
||||
if (property_id) {
|
||||
*os << kInternalPropertyId << ": " << *property_id;
|
||||
@ -131,8 +131,7 @@ void DumpVertex(std::ostream *os, query::DbAccessor *dba,
|
||||
"Unexpected error when getting properties.");
|
||||
}
|
||||
}
|
||||
DumpProperties(os, dba, *maybe_props,
|
||||
std::optional<uint64_t>(vertex.CypherId()));
|
||||
DumpProperties(os, dba, *maybe_props, vertex.CypherId());
|
||||
*os << ");";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user