From: Allen Day Date: Thu, 25 Sep 2003 17:28:37 +0000 (+0000) Subject: fix for strange interpretation of 1liner X-Git-Tag: v0.04~173 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f9c5e794de9710a4aa68716d49da47316834d8c8;p=dbsrgits%2FSQL-Translator.git fix for strange interpretation of 1liner --- diff --git a/lib/SQL/Translator/Schema/Table.pm b/lib/SQL/Translator/Schema/Table.pm index 5d24cc1..2e9f253 100644 --- a/lib/SQL/Translator/Schema/Table.pm +++ b/lib/SQL/Translator/Schema/Table.pm @@ -1,7 +1,7 @@ package SQL::Translator::Schema::Table; # ---------------------------------------------------------------------- -# $Id: Table.pm,v 1.20 2003-09-25 01:31:28 allenday Exp $ +# $Id: Table.pm,v 1.21 2003-09-25 17:28:37 allenday Exp $ # ---------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark # @@ -51,7 +51,7 @@ use Data::Dumper; use base 'Class::Base'; use vars qw( $VERSION $FIELD_ORDER ); -$VERSION = sprintf "%d.%02d", q$Revision: 1.20 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.21 $ =~ /(\d+)\.(\d+)/; # ---------------------------------------------------------------------- sub init { @@ -442,7 +442,9 @@ sub is_trivial_link { } foreach my $referenced (keys %fk){ - $self->{'is_trivial_link'} = 0 and last if $fk{$referenced} > 1; + if($fk{$referenced} > 1){ + $self->{'is_trivial_link'} = 0; + last; } return $self->{'is_trivial_link'};