Skip to content

Commit

Permalink
Merge pull request #111 from AO-StreetArt/tagQueryFix
Browse files Browse the repository at this point in the history
Fix tag query using WHERE ALL clause to check all supplied tags
  • Loading branch information
AO-StreetArt committed Nov 10, 2018
2 parents 0dc5c78 + a645aa9 commit 5e63cae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/proc/query/include/base_query_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,8 @@ class BaseQueryHelper {
query_str.append(")");
bool is_started = false;
// Check for Tags
// We will only query for the first tag supplied
if (scn->num_tags() > 0) {
query_str.append(" WHERE {inp_tag} in scn.tags");
query_str.append(" WHERE ALL(x in {inp_tags} WHERE x in scn.tags)");
is_started = true;
}
// Check for a distance-based query
Expand Down

0 comments on commit 5e63cae

Please sign in to comment.