diff --git a/backend/app/services/site_finder/connection_capacity_lookup.py b/backend/app/services/site_finder/connection_capacity_lookup.py index 60e98369..155f5494 100644 --- a/backend/app/services/site_finder/connection_capacity_lookup.py +++ b/backend/app/services/site_finder/connection_capacity_lookup.py @@ -523,10 +523,9 @@ def _query_nearby_network_zones(db: Session, parcel_wkt: str) -> list[dict]: """ try: with db.begin_nested(): - db.execute( - text("SET LOCAL statement_timeout = :ms"), - {"ms": str(_NETWORK_ZONE_TIMEOUT_MS)}, - ) + # SET не принимает bind-параметры (extended protocol → syntax error + # at or near "$1") — только литерал, как у offer_trend (parcels.py). + db.execute(text(f"SET LOCAL statement_timeout = '{_NETWORK_ZONE_TIMEOUT_MS:d}'")) rows = ( db.execute( text("""