From ca924426019c61ca8f9e2b27d1c4883625c3aa03 Mon Sep 17 00:00:00 2001 From: IrlJidel Date: Thu, 14 Jul 2016 19:49:58 +0100 Subject: [PATCH] pgsqlRunPartitionScript needs global $aCMDResult function pgsqlRunPartitionScript was missing global $aCMDResult setup was failing with ... PHP Notice: Undefined variable: aCMDResult in /home/roles/nominatim/app/Nominatim/build/utils/setup.php on line 768 NOTICE: type "nearplace" does not exist, skipping .. ERROR: relation "location_area_large_0" already exists ERROR: pgsql returned with error code (3) pgsql returned with error code (3) Command exited with non-zero status 255 --- utils/setup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/setup.php b/utils/setup.php index 94c7edb5..992034c7 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -761,6 +761,7 @@ function pgsqlRunPartitionScript($sTemplate) { + global $aCMDResult; $oDB =& getDB(); $sSQL = 'select distinct partition from country_name'; -- 2.45.1