From: Ken Youens-Clark Date: Thu, 10 Apr 2003 03:09:47 +0000 (+0000) Subject: Small fix. X-Git-Tag: v0.02~194 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=023c402625f90e592733c59310c998a4089cd03f;p=dbsrgits%2FSQL-Translator.git Small fix. --- diff --git a/lib/SQL/Translator/Producer/MySQL.pm b/lib/SQL/Translator/Producer/MySQL.pm index 66dad78..b3124f7 100644 --- a/lib/SQL/Translator/Producer/MySQL.pm +++ b/lib/SQL/Translator/Producer/MySQL.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::MySQL; # ------------------------------------------------------------------- -# $Id: MySQL.pm,v 1.10 2003-04-07 16:31:55 dlc Exp $ +# $Id: MySQL.pm,v 1.11 2003-04-10 03:09:47 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # darren chamberlain , @@ -24,7 +24,7 @@ package SQL::Translator::Producer::MySQL; use strict; use vars qw[ $VERSION $DEBUG ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.10 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.11 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; @@ -152,7 +152,7 @@ sub produce { } $def .= " REFERENCES $ref_table"; - if ( @$ref_fields ) { + if ( @{ $ref_fields || [] } ) { $def .= ' (' . join( ', ', @$ref_fields ) . ')'; }