Skip to content

Commit

Permalink
Fixed further bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
drolbr committed Apr 6, 2017
1 parent 41cc2a6 commit 4cc57fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/overpass_api/statements/id_query.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Id_Query_Statement : public Output_Statement
{
std::vector< uint64 >::const_iterator it = refs.begin();

std::string result = "(id:" + ::to_string(refs.size()) + ",";
std::string result = "(";

This comment has been minimized.

Copy link
@mmd-osm

mmd-osm Jun 16, 2017

Contributor

This change produces invalid queries: id: prefix is mandatory, in case refs.size() > 1, otherwise the query might collide with the bbox filter!

if (it != refs.end())
result += ::to_string(*it++);
while (it != refs.end())
Expand Down

0 comments on commit 4cc57fb

Please sign in to comment.