diff options
author | mkanat%kerio.com <> | 2005-04-15 14:46:04 +0200 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-04-15 14:46:04 +0200 |
commit | d8f3d06a17581384beb0bdf1adbbadc5566d7760 (patch) | |
tree | 79dd912ba9f5bcf55d6335315d70d8349881407d /Bugzilla/DB | |
parent | 7be1f1c90805dc6c1845434fc215f9f07199db75 (diff) | |
download | bugzilla-d8f3d06a17581384beb0bdf1adbbadc5566d7760.tar.gz bugzilla-d8f3d06a17581384beb0bdf1adbbadc5566d7760.tar.xz |
Bug 290414: bz_index_info is slightly broken and has unclear API
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=Tomas.Kopal, a=justdave
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r-- | Bugzilla/DB/Schema.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index 99127ff69..b151edf91 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -1608,8 +1608,9 @@ sub get_index_abstract { # Prevent a possible dereferencing of an undef hash, if the # table doesn't exist. - if (exists $self->{abstract_schema}->{$table}) { - my %indexes = (@{ $self->{abstract_schema}{$table}{INDEXES} }); + my $index_table = $self->get_table_abstract($table); + if ($index_table && exists $index_table->{INDEXES}) { + my %indexes = (@{ $index_table->{INDEXES} }); return $indexes{$index}; } return undef; |