From f6ca27f11dc3dfe156e5d4d177ed09be5f612d6b Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Sun, 15 Oct 2023 14:10:32 +0545 Subject: [PATCH] Critical bug fix on country scanning --- src/query_builder/builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/query_builder/builder.py b/src/query_builder/builder.py index f1bb9712..796c2ddd 100644 --- a/src/query_builder/builder.py +++ b/src/query_builder/builder.py @@ -442,7 +442,7 @@ def generate_where_clause_indexes_case( # if table_name == "ways_poly" or table_name == "nodes": # where_clause += f" and (country IN ({c_id}))" # else: - where_clause += f" and (country @> ARRAY[{c_id}])" + where_clause += f" and (country <@ ARRAY[{c_id}])" if ( country_export ): # ignore the geometry take geom from the db itself by using precalculated field @@ -450,7 +450,7 @@ def generate_where_clause_indexes_case( # if table_name == "ways_poly" or table_name == "nodes": # where_clause = f"country IN ({c_id})" # else: - where_clause = f"country @> ARRAY[{c_id}]" + where_clause = f"country <@ ARRAY[{c_id}]" return where_clause