projects
/
dbsrgits/SQL-Translator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
70289ed
)
Fix for bleadperl
Peter Rabbitson [Tue, 30 Jun 2009 10:14:49 +0000 (10:14 +0000)]
lib/SQL/Translator/Schema/Constraint.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Schema/Constraint.pm
b/lib/SQL/Translator/Schema/Constraint.pm
index
4a36725
..
aeb871d
100644
(file)
--- 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 };