mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
switch reverse() to new Geometry datatype
Also switches to using bind parameters for recurring parameters.
This commit is contained in:
@@ -38,7 +38,7 @@ class SearchConnection:
|
||||
) -> Any:
|
||||
""" Execute a 'scalar()' query on the connection.
|
||||
"""
|
||||
log().sql(self.connection, sql)
|
||||
log().sql(self.connection, sql, params)
|
||||
return await self.connection.scalar(sql, params)
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ class SearchConnection:
|
||||
) -> 'sa.Result[Any]':
|
||||
""" Execute a 'execute()' query on the connection.
|
||||
"""
|
||||
log().sql(self.connection, sql)
|
||||
log().sql(self.connection, sql, params)
|
||||
return await self.connection.execute(sql, params)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user