http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89251

Revision: 89251
Author:   freakolowsky
Date:     2011-06-01 08:41:44 +0000 (Wed, 01 Jun 2011)
Log Message:
-----------
* updated listTables function to also take in account possible user-dbname 
difference
* using different database will still probabbly break phpunit tests, but it's a 
step

Modified Paths:
--------------
    trunk/phase3/includes/db/DatabaseOracle.php

Modified: trunk/phase3/includes/db/DatabaseOracle.php
===================================================================
--- trunk/phase3/includes/db/DatabaseOracle.php 2011-06-01 08:27:51 UTC (rev 
89250)
+++ trunk/phase3/includes/db/DatabaseOracle.php 2011-06-01 08:41:44 UTC (rev 
89251)
@@ -824,7 +824,8 @@
                        $listWhere = ' AND table_name LIKE 
\''.strtoupper($prefix).'%\'';
                }
                
-               $result = $this->doQuery( "SELECT table_name FROM user_tables 
WHERE table_name NOT LIKE '%!_IDX$_' ESCAPE '!' $listWhere" );
+               $owner = strtoupper( $this->mDBname );
+               $result = $this->doQuery( "SELECT table_name FROM all_tables 
WHERE owner='$owner' AND table_name NOT LIKE '%!_IDX$_' ESCAPE '!' $listWhere" 
);
 
                // dirty code ... i know
                $endArray = array();


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to