From e74d9123b1133f103715d96081abc8a6ef258f3a Mon Sep 17 00:00:00 2001 From: Dominik Gleich <dominik.gleich@memgraph.io> Date: Mon, 27 Feb 2017 13:41:54 +0100 Subject: [PATCH] Fix wrong comparision of property. Reviewers: buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D71 --- .../hardcoded_query/match_profile_garment_set_score.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/integration/hardcoded_query/match_profile_garment_set_score.cpp b/tests/integration/hardcoded_query/match_profile_garment_set_score.cpp index d2ef1a56a..4c65b268b 100644 --- a/tests/integration/hardcoded_query/match_profile_garment_set_score.cpp +++ b/tests/integration/hardcoded_query/match_profile_garment_set_score.cpp @@ -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); } }