From d43a5844dd08924902724f055bf29f5fd2e7e9f1 Mon Sep 17 00:00:00 2001 From: Jure Kajzer Date: Tue, 2 Mar 2010 16:58:21 +0000 Subject: [PATCH] oracle: missing table prefix --- includes/db/DatabaseOracle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/db/DatabaseOracle.php b/includes/db/DatabaseOracle.php index 3ad821ec2a..fee5f404ab 100644 --- a/includes/db/DatabaseOracle.php +++ b/includes/db/DatabaseOracle.php @@ -851,7 +851,7 @@ class DatabaseOracle extends DatabaseBase { $tableWhere = '= \''.$table.'\''; } - $fieldInfoStmt = oci_parse( $this->mConn, 'SELECT * FROM wiki_field_info_full WHERE table_name '.$tableWhere.' and column_name = \''.$field.'\'' ); + $fieldInfoStmt = oci_parse( $this->mConn, 'SELECT * FROM '.$this->tableName('wiki_field_info_full').' WHERE table_name '.$tableWhere.' and column_name = \''.$field.'\'' ); if ( oci_execute( $fieldInfoStmt, OCI_DEFAULT ) === false ) { $e = oci_error( $fieldInfoStmt ); $this->reportQueryError( $e['message'], $e['code'], 'fieldInfo QUERY', __METHOD__ ); @@ -989,7 +989,7 @@ class DatabaseOracle extends DatabaseBase { } // do it like the postgres :D - $SQL = "INSERT INTO interwiki(iw_prefix,iw_url,iw_local) VALUES "; + $SQL = "INSERT INTO ".$this->tableName('interwiki')." (iw_prefix,iw_url,iw_local) VALUES "; while ( !feof( $f ) ) { $line = fgets( $f, 1024 ); $matches = array(); -- 2.20.1