Commit 64dcdcd3 authored by mkanat%kerio.com's avatar mkanat%kerio.com

Bug 285380: Bugzilla::DB::Schema uses ThrowCodeError incorrectly (Second Patch)

Patch By Max Kanat-Alexander <mkanat@kerio.com> r=joel, a=justdave
parent bc4e5744
...@@ -1131,7 +1131,7 @@ sub get_table_columns { ...@@ -1131,7 +1131,7 @@ sub get_table_columns {
my @ddl = (); my @ddl = ();
my $thash = $self->{schema}{$table}; my $thash = $self->{schema}{$table};
ThrowCodeError("Table $table does not exist in the database schema.") die "Table $table does not exist in the database schema."
unless (ref($thash)); unless (ref($thash));
my @columns = (); my @columns = ();
...@@ -1162,7 +1162,7 @@ sub get_table_ddl { ...@@ -1162,7 +1162,7 @@ sub get_table_ddl {
my($self, $table) = @_; my($self, $table) = @_;
my @ddl = (); my @ddl = ();
ThrowCodeError("Table $table does not exist in the database schema.") die "Table $table does not exist in the database schema."
unless (ref($self->{schema}{$table})); unless (ref($self->{schema}{$table}));
my $create_table = $self->_get_create_table_ddl($table); my $create_table = $self->_get_create_table_ddl($table);
...@@ -1208,7 +1208,7 @@ sub _get_create_table_ddl { ...@@ -1208,7 +1208,7 @@ sub _get_create_table_ddl {
my($self, $table) = @_; my($self, $table) = @_;
my $thash = $self->{schema}{$table}; my $thash = $self->{schema}{$table};
ThrowCodeError("Table $table does not exist in the database schema.") die "Table $table does not exist in the database schema."
unless (ref($thash)); unless (ref($thash));
my $create_table = "CREATE TABLE $table \(\n"; my $create_table = "CREATE TABLE $table \(\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment