From 64dcdcd3d321a66e880a28510fb20a1a3d05c445 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Wed, 9 Mar 2005 13:35:27 +0000 Subject: Bug 285380: Bugzilla::DB::Schema uses ThrowCodeError incorrectly (Second Patch) Patch By Max Kanat-Alexander r=joel, a=justdave --- Bugzilla/DB/Schema.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Bugzilla') 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"; -- cgit v1.2.3-24-g4f1b