From: Ken Youens-Clark Date: Thu, 13 Aug 2009 16:18:05 +0000 (+0000) Subject: Leave out empty bits. X-Git-Tag: v0.11008~105 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4ec6e692ae2fabe654c63ca7902fc7b0170a9abe;p=dbsrgits%2FSQL-Translator.git Leave out empty bits. --- diff --git a/lib/SQL/Translator/Producer/MySQL.pm b/lib/SQL/Translator/Producer/MySQL.pm index 3102ec0..a7ebb05 100644 --- a/lib/SQL/Translator/Producer/MySQL.pm +++ b/lib/SQL/Translator/Producer/MySQL.pm @@ -625,6 +625,7 @@ sub create_index return join( ' ', + map { $_ || () } lc $index->type eq 'normal' ? 'INDEX' : $index->type . ' INDEX', $index->name ? (