]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 285380: Bugzilla::DB::Schema uses ThrowCodeError incorrectly
authormkanat%kerio.com <>
Wed, 9 Mar 2005 10:42:30 +0000 (10:42 +0000)
committermkanat%kerio.com <>
Wed, 9 Mar 2005 10:42:30 +0000 (10:42 +0000)
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=glob, a=justdave

Bugzilla/DB/Schema.pm

index c448b269e6cb51d2f275b676cb91ed15ca7fe92f..912baac50222127e61f5df548550aefc0396231a 100644 (file)
@@ -1059,7 +1059,7 @@ sub get_type_ddl {
     my $finfo = (@_ == 1 && ref($_[0]) eq 'HASH') ? $_[0] : { @_ };
 
     my $type = $finfo->{TYPE};
-    ThrowCodeError("A data type must be specified.") unless ($type);
+    die "A valid TYPE was not specified for this column." unless ($type);
     my $default = $finfo->{DEFAULT};
     my $fkref = $self->{enable_references} ? $finfo->{REFERENCES} : undef;
     my $type_ddl = $self->{db_specific}{$type} || $type;