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 |
||
---|---|---|
.. | ||
api | ||
clicmd | ||
data | ||
db | ||
indexer | ||
server | ||
tokenizer | ||
tools | ||
utils | ||
__init__.py | ||
cli.py | ||
config.py | ||
errors.py | ||
paths.py | ||
typing.py | ||
version.py |