From: Ken Youens-Clark Date: Fri, 21 Nov 2003 00:03:15 +0000 (+0000) Subject: Initializing variable to suppress silly warnings. X-Git-Tag: v0.06~255 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8e9e79dc2b7ae8ae8dffe3c012467b3197eb76ea;p=dbsrgits%2FSQL-Translator.git Initializing variable to suppress silly warnings. --- diff --git a/lib/SQL/Translator/Parser/PostgreSQL.pm b/lib/SQL/Translator/Parser/PostgreSQL.pm index 78e7b26..7ebd5a6 100644 --- a/lib/SQL/Translator/Parser/PostgreSQL.pm +++ b/lib/SQL/Translator/Parser/PostgreSQL.pm @@ -1,7 +1,7 @@ package SQL::Translator::Parser::PostgreSQL; # ------------------------------------------------------------------- -# $Id: PostgreSQL.pm,v 1.32 2003-11-17 19:09:33 allenday Exp $ +# $Id: PostgreSQL.pm,v 1.33 2003-11-21 00:03:15 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # Allen Day , @@ -111,7 +111,7 @@ View table: use strict; use vars qw[ $DEBUG $VERSION $GRAMMAR @EXPORT_OK ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.32 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.33 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; @@ -287,7 +287,7 @@ column_name : NAME '.' NAME comment_phrase : /'.*?'|NULL/ { - my $val = $item[1]; + my $val = $item[1] || ''; $val =~ s/^'|'$//g; $return = $val; }