From: freakolowsky Date: Sat, 25 May 2013 10:43:24 +0000 (+0200) Subject: Fixed OracleUpdater::doPageRestrictionsPKUKFix prefix X-Git-Tag: 1.31.0-rc.0~19548^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=2269df8e7684802f6094c89635218855f4588097;p=lhc%2Fweb%2Fwiklou.git Fixed OracleUpdater::doPageRestrictionsPKUKFix prefix Previously OracleUpdater::doPageRestrictionsPKUKFix had the database prefix hard-coded into the SQL query. This removes the hard-coded value and replaces it with the actual configured prefix. Change-Id: If60f23af7fd238d4c91ebf25b095749345a2718d --- diff --git a/includes/installer/OracleUpdater.php b/includes/installer/OracleUpdater.php index 56d9f21b1e..be10e04531 100644 --- a/includes/installer/OracleUpdater.php +++ b/includes/installer/OracleUpdater.php @@ -205,7 +205,9 @@ class OracleUpdater extends DatabaseUpdater { $meta = $this->db->query( 'SELECT column_name FROM all_cons_columns WHERE owner = \'' . strtoupper( $this->db->getDBname() ) . - '\' AND constraint_name = \'MW_PAGE_RESTRICTIONS_PK\' AND rownum = 1' + '\' AND constraint_name = \'' . + $this->db->tablePrefix() . + 'PAGE_RESTRICTIONS_PK\' AND rownum = 1' ); $row = $meta->fetchRow(); if ( $row['column_name'] == 'PR_ID' ) {