Fix wrong comparision of property.
Reviewers: buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D71
This commit is contained in:
parent
be0f9d9796
commit
e74d9123b1
@ -24,12 +24,13 @@ class CPUPlan : public PlanInterface<Stream> {
|
||||
if (prop.type_ == TypedValue::Type::Null) continue;
|
||||
auto cmp = prop == args.at(0);
|
||||
if (cmp.type_ != TypedValue::Type::Bool) continue;
|
||||
if (cmp.Value<bool>() != true) continue;
|
||||
|
||||
auto prop2 = g1.PropsAt(db_accessor.property("partner_id"));
|
||||
if (prop.type_ == TypedValue::Type::Null) continue;
|
||||
auto cmp2 = prop == args.at(1);
|
||||
if (cmp.type_ != TypedValue::Type::Bool) continue;
|
||||
if (cmp.Value<bool>() != true) continue;
|
||||
if (prop2.type_ == TypedValue::Type::Null) continue;
|
||||
auto cmp2 = prop2 == args.at(1);
|
||||
if (cmp2.type_ != TypedValue::Type::Bool) continue;
|
||||
if (cmp2.Value<bool>() != true) continue;
|
||||
g1_set.push_back(g1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user