diff options
author | mkanat%kerio.com <> | 2005-03-09 13:35:27 +0000 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-03-09 13:35:27 +0000 |
commit | 64dcdcd3d321a66e880a28510fb20a1a3d05c445 (patch) | |
tree | 727e4d8e581900545e7a551f3bbc4ca26e3514ea /Bugzilla | |
parent | bc4e57442805967c3cf541f0df0427402bd770c1 (diff) | |
download | bugs-64dcdcd3d321a66e880a28510fb20a1a3d05c445.tar bugs-64dcdcd3d321a66e880a28510fb20a1a3d05c445.tar.gz bugs-64dcdcd3d321a66e880a28510fb20a1a3d05c445.tar.bz2 bugs-64dcdcd3d321a66e880a28510fb20a1a3d05c445.tar.xz bugs-64dcdcd3d321a66e880a28510fb20a1a3d05c445.zip |
Bug 285380: Bugzilla::DB::Schema uses ThrowCodeError incorrectly (Second Patch)
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=joel, a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/DB/Schema.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index 912baac50..bf112849f 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -1131,8 +1131,8 @@ sub get_table_columns { my @ddl = (); my $thash = $self->{schema}{$table}; - ThrowCodeError("Table $table does not exist in the database schema.") - unless (ref($thash)); + die "Table $table does not exist in the database schema." + unless (ref($thash)); my @columns = (); my @fields = @{ $thash->{FIELDS} }; @@ -1162,8 +1162,8 @@ sub get_table_ddl { my($self, $table) = @_; my @ddl = (); - ThrowCodeError("Table $table does not exist in the database schema.") - unless (ref($self->{schema}{$table})); + die "Table $table does not exist in the database schema." + unless (ref($self->{schema}{$table})); my $create_table = $self->_get_create_table_ddl($table); push(@ddl, $create_table) if $create_table; @@ -1208,8 +1208,8 @@ sub _get_create_table_ddl { my($self, $table) = @_; my $thash = $self->{schema}{$table}; - ThrowCodeError("Table $table does not exist in the database schema.") - unless (ref($thash)); + die "Table $table does not exist in the database schema." + unless (ref($thash)); my $create_table = "CREATE TABLE $table \(\n"; |