From 7eb263a3a482708971862c6749f3097a7a6e378f Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 29 Oct 2014 21:04:28 +0100 Subject: [PATCH] only check for postgres major and minor version fixes #192 --- utils/setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/setup.php b/utils/setup.php index 5a315278..ee37d976 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -110,7 +110,7 @@ $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";