From: Jure Kajzer Date: Tue, 2 Mar 2010 16:58:21 +0000 (+0000) Subject: oracle: missing table prefix X-Git-Tag: 1.31.0-rc.0~37568 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=d43a5844dd08924902724f055bf29f5fd2e7e9f1;p=lhc%2Fweb%2Fwiklou.git oracle: missing table prefix --- 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();