From: Darren Chamberlain Date: Wed, 4 Feb 2004 17:32:42 +0000 (+0000) Subject: Fixed 'useless use of constant in void context' warning. X-Git-Tag: v0.06~219 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8c12c4066e7b70bfa3aee7185f831a30d2bf9025;p=dbsrgits%2FSQL-Translator.git Fixed 'useless use of constant in void context' warning. --- diff --git a/lib/SQL/Translator/Parser/PostgreSQL.pm b/lib/SQL/Translator/Parser/PostgreSQL.pm index 042ac64..3281f7a 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.35 2003-12-17 22:36:41 kycl4rk Exp $ +# $Id: PostgreSQL.pm,v 1.36 2004-02-04 17:32:22 dlc 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.35 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.36 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; @@ -608,7 +608,7 @@ key_action : key_delete key_delete : /on delete/i key_mutation { - $return => { + $return = { type => 'delete', action => $item[2], }; @@ -616,7 +616,7 @@ key_delete : /on delete/i key_mutation key_update : /on update/i key_mutation { - $return => { + $return = { type => 'update', action => $item[2], }; diff --git a/lib/SQL/Translator/Parser/SQLite.pm b/lib/SQL/Translator/Parser/SQLite.pm index 3a97dd4..1533bea 100644 --- a/lib/SQL/Translator/Parser/SQLite.pm +++ b/lib/SQL/Translator/Parser/SQLite.pm @@ -1,7 +1,7 @@ package SQL::Translator::Parser::SQLite; # ------------------------------------------------------------------- -# $Id: SQLite.pm,v 1.4 2003-11-06 18:22:12 kycl4rk Exp $ +# $Id: SQLite.pm,v 1.5 2004-02-04 17:32:42 dlc Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # darren chamberlain , @@ -154,7 +154,7 @@ like-op::= use strict; use vars qw[ $DEBUG $VERSION $GRAMMAR @EXPORT_OK ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.5 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; @@ -182,7 +182,7 @@ $GRAMMAR = q! # failed. -ky # startrule : statement(s) eofile { - $return => { + $return = { tables => \%tables, views => \@views, triggers => \@triggers,