]> git.openstreetmap.org Git - nominatim.git/commitdiff
only check for postgres major and minor version
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 29 Oct 2014 20:04:28 +0000 (21:04 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 29 Oct 2014 20:04:28 +0000 (21:04 +0100)
fixes #192

utils/setup.php

index c07bccefc949664b0cff92a327bbe88b4f05eac6..42a132bf5c92aab4e93a067c6e8d925ed4a34c57 100755 (executable)
                $oDB =& getDB();
 
                $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])
                {
                        echo "ERROR: PostgreSQL version is not correct.  Expected ".CONST_Postgresql_Version." found ".$aMatches[1].'.'.$aMatches[2]."\n";