Bug 285380: Bugzilla::DB::Schema uses ThrowCodeError incorrectly

Patch By Max Kanat-Alexander <mkanat@kerio.com> r=glob, a=justdave
This commit is contained in:
mkanat%kerio.com 2005-03-09 02:42:30 +00:00
Родитель c3da78d948
Коммит 401283d3f6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;