]> git.openstreetmap.org Git - nominatim.git/commit
remove type info from SQLALchemy condition functions
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 17 Oct 2023 08:57:52 +0000 (10:57 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 23 Oct 2023 15:19:12 +0000 (17:19 +0200)
commit613c8635a81eedcdb5c52b4da3030fb2ad6ed7a6
treeb01eb115c3b54a132c8fec76a8cec4f19bb0d7c2
parent899a04ad264c45197ec7509b164c934a05392f30
remove type info from SQLALchemy condition functions

A boolean type makes the SQLite dialect produce a costruct like
'func() = 1' in WHERE condition. While syntactically correct, it tends
to confuse the query planer.
nominatim/db/sqlalchemy_functions.py
nominatim/db/sqlalchemy_types.py