From: Ken Youens-Clark Date: Fri, 15 Aug 2003 16:09:45 +0000 (+0000) Subject: Changed default value rule slightly to allow the empty string. X-Git-Tag: v0.04~330 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f8842e3baa629a60b782bf9a4fc4d4e13960f697;p=dbsrgits%2FSQL-Translator.git Changed default value rule slightly to allow the empty string. --- diff --git a/lib/SQL/Translator/Parser/PostgreSQL.pm b/lib/SQL/Translator/Parser/PostgreSQL.pm index 22896c4..aedcb40 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.24 2003-08-12 22:00:28 kycl4rk Exp $ +# $Id: PostgreSQL.pm,v 1.25 2003-08-15 16:09:45 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.24 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.25 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; @@ -617,7 +617,7 @@ create_table : /create/i TABLE create_index : /create/i /index/i -default_val : /default/i /(\d+|'[^']+'|\w+\(.*?\))/ +default_val : /default/i /(\d+|'[^']*'|\w+\(.*?\))/ { my $val = defined $item[2] ? $item[2] : ''; $val =~ s/^'|'$//g;