restrict range for interpolated housenumbers

Interpolations are only supported up to 2^32 by the database.
Limit to 8 digits, which is still more than should be needed.
This commit is contained in:
Sarah Hoffmann
2023-09-05 11:41:41 +02:00
parent 18b2a4c204
commit c284df2dc9
2 changed files with 22 additions and 1 deletions

View File

@@ -685,7 +685,8 @@ class PlaceSearch(AbstractSearch):
if self.qualifiers:
place_sql = place_sql.where(self.qualifiers.sql_restrict(thnr))
numerals = [int(n) for n in self.housenumbers.values if n.isdigit()]
numerals = [int(n) for n in self.housenumbers.values
if n.isdigit() and len(n) < 8]
interpol_sql: SaColumn
tiger_sql: SaColumn
if numerals and \