From 3ec67b9193b0ab49ef7b48cf584ce4cc053d78e3 Mon Sep 17 00:00:00 2001 From: Christian von Roques Date: Tue, 4 Apr 2017 18:09:28 +0200 Subject: [PATCH] update: getPostgresVersion requires a database connection --- utils/update.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/update.php b/utils/update.php index 232a23c9..52577d88 100755 --- a/utils/update.php +++ b/utils/update.php @@ -156,12 +156,12 @@ if ($bHaveDiff) { } if ($aResult['deduplicate']) { - // - if (getPostgresVersion() < 9.3) { + $oDB =& getDB(); + + if (getPostgresVersion($oDB) < 9.3) { fail("ERROR: deduplicate is only currently supported in postgresql 9.3"); } - $oDB =& getDB(); $sSQL = 'select partition from country_name order by country_code'; $aPartitions = chksql($oDB->getCol($sSQL)); $aPartitions[] = 0; -- 2.45.1