Nominatim/nominatim/api
Sarah Hoffmann 36d068871d disable prepared statements
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
2023-03-28 14:53:45 +02:00
..
v1 switch reverse CLI command to Python implementation 2023-03-26 18:09:33 +02:00
__init__.py add output formatters for ReverseResults 2023-03-25 15:45:03 +01:00
connection.py add HTML-formatted debug output to lookup 2023-02-14 11:57:37 +01:00
core.py disable prepared statements 2023-03-28 14:53:45 +02:00
localization.py switch details cli command to new Python implementation 2023-02-04 21:22:22 +01:00
logging.py ignore NotImplementedErrors when compiling SQL 2023-03-24 11:16:02 +01:00
lookup.py make sure PHP and Python reverse code does the same 2023-03-26 16:21:43 +02:00
result_formatting.py switch details cli command to new Python implementation 2023-02-04 21:22:22 +01:00
results.py make sure PHP and Python reverse code does the same 2023-03-26 16:21:43 +02:00
reverse.py switch reverse CLI command to Python implementation 2023-03-26 18:09:33 +02:00
status.py add property cache for API 2023-01-30 09:36:17 +01:00
types.py python: implement reverse lookup function 2023-03-23 22:38:37 +01:00