mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
band-aid for SQLAlchemy 1.4
This commit is contained in:
@@ -93,6 +93,14 @@ class BaseLogger:
|
||||
for k in extra_params[0]:
|
||||
params[k] = f':{k}'
|
||||
|
||||
sqlstr = str(compiled)
|
||||
|
||||
if '%s' in sqlstr:
|
||||
try:
|
||||
return sqlstr % tuple((repr(compiled.params[name]) for name in compiled.positiontup))
|
||||
except TypeError:
|
||||
return sqlstr
|
||||
|
||||
return str(compiled) % params
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user