From 6ac82136a67f8bb577b1c6bfed510d3510140d57 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Sat, 22 Nov 2008 06:49:16 +0000 Subject: [PATCH] Set numeric_version more globally so things like search don't break. --- includes/db/DatabasePostgres.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index deb1683570..8b119e5ceb 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -205,7 +205,7 @@ class DatabasePostgres extends Database { global $wgDBname, $wgDBuser, $wgDBpassword, $wgDBsuperuser, $wgDBmwschema, $wgDBts2schema; print "
  • Checking the version of Postgres..."; - $version = $this->numeric_version = $this->getServerVersion(); + $version = $this->getServerVersion(); $PGMINVER = '8.1'; if ($version < $PGMINVER) { print "FAILED. Required version is $PGMINVER. You have $version
  • \n"; @@ -1056,7 +1056,8 @@ class DatabasePostgres extends Database { */ function getServerVersion() { $versionInfo = pg_version( $this->mConn ); - return $versionInfo['server']; + $this->numeric_version = $versionInfo['server']; + return $this->numeric_version; } /** -- 2.20.1