Skip to content

Commit

Permalink
Readd mandatory prefix to avoid bbox filter collision
Browse files Browse the repository at this point in the history
  • Loading branch information
bagage committed Sep 23, 2017
1 parent 3775ee1 commit c73a8b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/overpass_api/statements/id_query.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Id_Query_Statement : public Output_Statement
static Generic_Statement_Maker< Id_Query_Statement > statement_maker;

virtual Query_Constraint* get_query_constraint();

const std::vector< uint64 >& get_refs() { return refs; }
int get_type() const { return type; }

Expand All @@ -63,7 +63,7 @@ class Id_Query_Statement : public Output_Statement
result += " ref=\"" + ::to_string(refs[0]) + "\"";
for (uint i = 1; i < refs.size(); ++i)
result += " ref_" + ::to_string(i) + "=\"" + ::to_string(refs[i]) + "\"";

return result + dump_xml_result_name() + "/>\n";
}

Expand All @@ -75,14 +75,14 @@ class Id_Query_Statement : public Output_Statement
virtual std::string dump_ql_in_query(const std::string& indent) const
{
std::vector< uint64 >::const_iterator it = refs.begin();
std::string result = "(";

std::string result = (refs.size() > 1) ? "(id:" : "(";
if (it != refs.end())
result += ::to_string(*it++);
while (it != refs.end())
result += "," + ::to_string(*it++);
result += ")";

return result;
}

Expand Down

0 comments on commit c73a8b3

Please sign in to comment.