projects
/
dbsrgits/SQL-Translator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
edc7ae1
)
Suppress "Exiting subroutine via next"
Larry Leszczynski [Tue, 23 Apr 2013 19:41:21 +0000 (13:41 -0600)]
lib/SQL/Translator/Producer/MySQL.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Producer/MySQL.pm
b/lib/SQL/Translator/Producer/MySQL.pm
index
6c06caa
..
356f4b6
100644
(file)
--- a/
lib/SQL/Translator/Producer/MySQL.pm
+++ b/
lib/SQL/Translator/Producer/MySQL.pm
@@
-731,7
+731,7
@@
sub create_constraint
my $reference_table_name = quote_table_name($c->reference_table, $qt);
- my @fields = $c->fields or next;
+ my @fields = $c->fields or return;
if ( $c->type eq PRIMARY_KEY ) {
return 'PRIMARY KEY (' . $qf . join("$qf, $qf", @fields). $qf . ')';