forked from hans/Nominatim
There is a bug in SQLAlchemy that assigns the wrong value to bind parameters from closure variables when reusing lambda statements that are later extended with other non-lambda expressions. Thus either avoid lambda statements with closure variables or extending them with non-lambda expressions.