http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89759
Revision: 89759
Author: freakolowsky
Date: 2011-06-09 07:15:02 +0000 (Thu, 09 Jun 2011)
Log Message:
-----------
* wrapped table and dbname with addQuotes
Modified Paths:
--------------
branches/REL1_17/phase3/includes/db/DatabaseOracle.php
Modified: branches/REL1_17/phase3/includes/db/DatabaseOracle.php
===================================================================
--- branches/REL1_17/phase3/includes/db/DatabaseOracle.php 2011-06-09
06:26:07 UTC (rev 89758)
+++ branches/REL1_17/phase3/includes/db/DatabaseOracle.php 2011-06-09
07:15:02 UTC (rev 89759)
@@ -936,9 +936,9 @@
* Query whether a given table exists (in the given schema, or the
default mw one if not given)
*/
function tableExists( $table ) {
- $table = trim( $this->tableName($table), '"' );
- $owner = strtoupper( $this->mDBname );
- $SQL = "SELECT 1 FROM all_tables WHERE owner='$owner' AND
table_name='$table'";
+ $table = $this->addQuotes( trim( $this->tableName($table), '"'
) );
+ $owner = $this->addQuotes( strtoupper( $this->mDBname ) );
+ $SQL = "SELECT 1 FROM all_tables WHERE owner=$owner AND
table_name=$table";
$res = $this->doQuery( $SQL );
if ( $res ) {
$count = $res->numRows();
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs