mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
@@ -112,7 +112,7 @@
|
|||||||
$oDB =& getDB();
|
$oDB =& getDB();
|
||||||
|
|
||||||
$sVersionString = $oDB->getOne('select version()');
|
$sVersionString = $oDB->getOne('select version()');
|
||||||
preg_match('#PostgreSQL ([0-9]+)[.]([0-9]+)[.]([0-9]+) #', $sVersionString, $aMatches);
|
preg_match('#PostgreSQL ([0-9]+)[.]([0-9]+)[^0-9]#', $sVersionString, $aMatches);
|
||||||
if (CONST_Postgresql_Version != $aMatches[1].'.'.$aMatches[2])
|
if (CONST_Postgresql_Version != $aMatches[1].'.'.$aMatches[2])
|
||||||
{
|
{
|
||||||
echo "ERROR: PostgreSQL version is not correct. Expected ".CONST_Postgresql_Version." found ".$aMatches[1].'.'.$aMatches[2]."\n";
|
echo "ERROR: PostgreSQL version is not correct. Expected ".CONST_Postgresql_Version." found ".$aMatches[1].'.'.$aMatches[2]."\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user