From: Peter Rabbitson Date: Tue, 30 Jun 2009 10:14:49 +0000 (+0000) Subject: Fix for bleadperl X-Git-Tag: v0.11008~141 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bf00a4e9f8c0a55bb2c9eaba4eb9a51272034ea5;p=dbsrgits%2FSQL-Translator.git Fix for bleadperl --- diff --git a/lib/SQL/Translator/Schema/Constraint.pm b/lib/SQL/Translator/Schema/Constraint.pm index 4a36725..aeb871d 100644 --- a/lib/SQL/Translator/Schema/Constraint.pm +++ b/lib/SQL/Translator/Schema/Constraint.pm @@ -511,7 +511,7 @@ Get or set the constraint's type. my $self = shift; - if ( my $type = uc shift ) { + if ( my $type = uc (shift || '') ) { $type =~ s/_/ /g; return $self->error("Invalid constraint type: $type") unless $VALID_CONSTRAINT_TYPE{ $type };