summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2016-05-23 18:08:59 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2016-05-23 18:08:59 +0200
commit9acca922dddfadfad8d86e10bf516b30b113973c (patch)
treebbc6da3f8c872b264280af47c69a0d12a9d33c7e
parent5d5c1cfdb12050176825b4e1e28808a708dea58b (diff)
downloadbugzilla-9acca922dddfadfad8d86e10bf516b30b113973c.tar.gz
bugzilla-9acca922dddfadfad8d86e10bf516b30b113973c.tar.xz
Bug 1272883 - [Oracle] Exclude APEX tables from $dbh->bz_table_list_real()
r=dkl
-rw-r--r--Bugzilla/DB/Oracle.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/DB/Oracle.pm b/Bugzilla/DB/Oracle.pm
index e863bac42..28b6e8c74 100644
--- a/Bugzilla/DB/Oracle.pm
+++ b/Bugzilla/DB/Oracle.pm
@@ -511,7 +511,8 @@ sub bz_table_list_real {
my ($self) = @_;
my $tables = $self->selectcol_arrayref(
"SELECT LOWER(TABLE_NAME) FROM USER_TABLES WHERE
- TABLE_NAME NOT LIKE ? ORDER BY TABLE_NAME", undef, 'DR$%');
+ TABLE_NAME NOT LIKE ? AND TABLE_NAME NOT LIKE ?
+ ORDER BY TABLE_NAME", undef, 'DR$%', 'APEX$%');
return @$tables;
}