Skip to content

Commit

Permalink
Merge pull request #3248 from lonvia/fix-postcode-area-computation
Browse files Browse the repository at this point in the history
PHP frontent: fix postcode area computation for address points
  • Loading branch information
lonvia authored Nov 15, 2023
2 parents b4ce1fb + 9a1b8a6 commit ee556fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib-sql/functions/address_lookup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ BEGIN
-- If the place had a postcode assigned, take this one only
-- into consideration when it is an area and the place does not have
-- a postcode itself.
IF location.fromarea AND location.isaddress
IF location.fromarea AND location_isaddress
AND (place.address is null or not place.address ? 'postcode')
THEN
place.postcode := null; -- remove the less exact postcode
Expand Down
2 changes: 1 addition & 1 deletion nominatim/db/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def execute(self, query: Query, args: Any = None) -> None:
""" Query execution that logs the SQL query when debugging is enabled.
"""
if LOG.isEnabledFor(logging.DEBUG):
LOG.debug(self.mogrify(query, args).decode('utf-8')) # type: ignore[arg-type]
LOG.debug(self.mogrify(query, args).decode('utf-8'))

super().execute(query, args)

Expand Down

0 comments on commit ee556fd

Please sign in to comment.