From bc4e57442805967c3cf541f0df0427402bd770c1 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Wed, 9 Mar 2005 10:42:30 +0000 Subject: Bug 285380: Bugzilla::DB::Schema uses ThrowCodeError incorrectly Patch By Max Kanat-Alexander r=glob, a=justdave --- Bugzilla/DB/Schema.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index c448b269e..912baac50 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; -- cgit v1.2.3-24-g4f1b