summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-03-09 11:42:30 +0100
committermkanat%kerio.com <>2005-03-09 11:42:30 +0100
commitbc4e57442805967c3cf541f0df0427402bd770c1 (patch)
treeba12141520b65b26f2fc17ea66815d4750b801e0 /Bugzilla/DB
parentb8793ea28e3e03b2452bac119f2adcd3758e7260 (diff)
downloadbugzilla-bc4e57442805967c3cf541f0df0427402bd770c1.tar.gz
bugzilla-bc4e57442805967c3cf541f0df0427402bd770c1.tar.xz
Bug 285380: Bugzilla::DB::Schema uses ThrowCodeError incorrectly
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=glob, a=justdave
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Schema.pm2
1 files changed, 1 insertions, 1 deletions
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;