From: Brian Quinion Date: Mon, 25 Oct 2010 12:22:22 +0000 (+0000) Subject: default path fixes X-Git-Tag: v2.0.0~205 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/4c2c499860d631b746e0db10a5b2ff9cd279c241 default path fixes --- diff --git a/lib/lib.php b/lib/lib.php index e384949e..8a1fb902 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -4,7 +4,7 @@ { if (!$sUserError) $sUserError = $sError; log('ERROR:'.$sError); - echo $sUserError; + echo $sUserError."\n"; exit; } diff --git a/nominatim/postgresql.h b/nominatim/postgresql.h index ebece610..6a14e94e 100644 --- a/nominatim/postgresql.h +++ b/nominatim/postgresql.h @@ -7,6 +7,8 @@ #define PG_OID_INT8 20 #define PG_OID_INT4 23 +#include + #if __BYTE_ORDER == __BIG_ENDIAN #define PGint16(x) (x) #define PGint32(x) (x) diff --git a/utils/setup.php b/utils/setup.php index 397eaa1b..26179d04 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -1,7 +1,7 @@ #!/usr/bin/php -Cq getCol($sSQL); + if (PEAR::isError($aPartitions)) + { + fail($aPartitions->getMessage()); + } $aPartitions[] = 'none'; $sTemplate = file_get_contents(CONST_BasePath.'/sql/partitions.src.sql'); @@ -32,6 +54,7 @@ $sTemplate = str_replace($aMatch[0], $sResult, $sTemplate); } echo $sTemplate; + exit; } showUsage($aCMDOptions, true);