summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-03-09 14:35:27 +0100
committermkanat%kerio.com <>2005-03-09 14:35:27 +0100
commit64dcdcd3d321a66e880a28510fb20a1a3d05c445 (patch)
tree727e4d8e581900545e7a551f3bbc4ca26e3514ea /Bugzilla
parentbc4e57442805967c3cf541f0df0427402bd770c1 (diff)
downloadbugzilla-64dcdcd3d321a66e880a28510fb20a1a3d05c445.tar.gz
bugzilla-64dcdcd3d321a66e880a28510fb20a1a3d05c445.tar.xz
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.pm12
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";