From: mkanat%kerio.com <> Date: Wed, 9 Mar 2005 10:42:30 +0000 (+0000) Subject: Bug 285380: Bugzilla::DB::Schema uses ThrowCodeError incorrectly X-Git-Tag: bugzilla-2.19.3~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc4e57442805967c3cf541f0df0427402bd770c1;p=thirdparty%2Fbugzilla.git Bug 285380: Bugzilla::DB::Schema uses ThrowCodeError incorrectly Patch By Max Kanat-Alexander r=glob, a=justdave --- diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index c448b269e6..912baac502 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -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;