From: Ken Youens-Clark Date: Fri, 10 Oct 2003 15:59:03 +0000 (+0000) Subject: Fix to size of float field. X-Git-Tag: v0.04~85 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8545fe447903d6ae98927c11d945d1c0a6a0241a;p=dbsrgits%2FSQL-Translator.git Fix to size of float field. --- diff --git a/lib/SQL/Translator/Parser/xSV.pm b/lib/SQL/Translator/Parser/xSV.pm index 92f1bc0..7813a9a 100644 --- a/lib/SQL/Translator/Parser/xSV.pm +++ b/lib/SQL/Translator/Parser/xSV.pm @@ -1,7 +1,7 @@ package SQL::Translator::Parser::xSV; # ------------------------------------------------------------------- -# $Id: xSV.pm,v 1.12 2003-10-09 21:49:19 kycl4rk Exp $ +# $Id: xSV.pm,v 1.13 2003-10-10 15:59:03 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # darren chamberlain @@ -68,7 +68,7 @@ C. use strict; use vars qw($VERSION @EXPORT); -$VERSION = sprintf "%d.%02d", q$Revision: 1.12 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.13 $ =~ /(\d+)\.(\d+)/; use Exporter; use Text::ParseWords qw(quotewords); @@ -145,7 +145,7 @@ sub parse { ) { $type = 'float'; my ( $w, $d ) = map { s/,//g; $_ } split( /\./, $data ); - $size = [ length $w, length $d ]; + $size = [ length $w + length $d, length $d ]; } else { $type = 'char';