From 97fe1bc9aa7ffb8ffbeae252f4275f6b667b9926 Mon Sep 17 00:00:00 2001 From: Jure Kajzer Date: Wed, 1 Jun 2011 08:41:44 +0000 Subject: [PATCH] * 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 --- includes/db/DatabaseOracle.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.20.1