From: Jure Kajzer Date: Wed, 1 Jun 2011 08:41:44 +0000 (+0000) Subject: * updated listTables function to also take in account possible user-dbname difference X-Git-Tag: 1.31.0-rc.0~29810 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=97fe1bc9aa7ffb8ffbeae252f4275f6b667b9926;p=lhc%2Fweb%2Fwiklou.git * 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 --- diff --git a/includes/db/DatabaseOracle.php b/includes/db/DatabaseOracle.php index 50ab4f2002..c708334acf 100644 --- a/includes/db/DatabaseOracle.php +++ b/includes/db/DatabaseOracle.php @@ -824,7 +824,8 @@ class DatabaseOracle extends DatabaseBase { $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();