mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-23 05:35:13 +03:00
36d068871d
Prepared statements do not work well with the partial indexes that Nominatim uses because all Python constants are replaced with parameters. A query like: placex.select().where(placex.c.rank_address.between(4, 25) gets translated into a prepared query with two parameters: SELECT * FROM placex WHERE rank_address BETWEEN %s and %s And this does not work with a partial index of: CREATE INDEX on placex(geometry) WHERE rank_address between 4 and 25 |
||
---|---|---|
.. | ||
v1 | ||
__init__.py | ||
connection.py | ||
core.py | ||
localization.py | ||
logging.py | ||
lookup.py | ||
result_formatting.py | ||
results.py | ||
reverse.py | ||
status.py | ||
types.py |