From: Ken Youens-Clark Date: Tue, 17 Jun 2003 02:12:23 +0000 (+0000) Subject: Added INSERT and UPDATE placeholders to get parser to not barf on those. X-Git-Tag: v0.02~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4d2da1f71c2812992d03c0ac6436fd9f2b9ec641;p=dbsrgits%2FSQL-Translator.git Added INSERT and UPDATE placeholders to get parser to not barf on those. --- diff --git a/lib/SQL/Translator/Parser/PostgreSQL.pm b/lib/SQL/Translator/Parser/PostgreSQL.pm index cea34da..605578e 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.17 2003-06-11 03:59:49 kycl4rk Exp $ +# $Id: PostgreSQL.pm,v 1.18 2003-06-17 02:12:23 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.17 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.18 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; @@ -149,7 +149,9 @@ statement : create | grant | revoke | drop + | insert | connect + | update | set | @@ -179,6 +181,10 @@ grant : /grant/i WORD(s /,/) /on/i table_name /to/i name_with_opt_quotes(s /,/) drop : /drop/i /[^;]*/ ';' +insert : /insert/i /[^;]*/ ';' + +update : /update/i /[^;]*/ ';' + # # Create table. #