From: Ken Youens-Clark Date: Sat, 3 May 2003 15:02:15 +0000 (+0000) Subject: Fixed an error in default value regex that disallowed a value like "00:18:00". X-Git-Tag: v0.02~154 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=be019aae477f7c8af73452b1bfbb71f6a3c777d4;p=dbsrgits%2FSQL-Translator.git Fixed an error in default value regex that disallowed a value like "00:18:00". --- diff --git a/lib/SQL/Translator/Parser/MySQL.pm b/lib/SQL/Translator/Parser/MySQL.pm index fe8132f..86bae9c 100644 --- a/lib/SQL/Translator/Parser/MySQL.pm +++ b/lib/SQL/Translator/Parser/MySQL.pm @@ -1,7 +1,7 @@ package SQL::Translator::Parser::MySQL; # ------------------------------------------------------------------- -# $Id: MySQL.pm,v 1.15 2003-04-30 21:58:40 kycl4rk Exp $ +# $Id: MySQL.pm,v 1.16 2003-05-03 15:02:15 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # darren chamberlain , @@ -123,7 +123,7 @@ Here's the word from the MySQL site use strict; use vars qw[ $DEBUG $VERSION $GRAMMAR @EXPORT_OK ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.15 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.16 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; @@ -366,7 +366,7 @@ not_null : /not/i /null/i { $return = 0 } unsigned : /unsigned/i { $return = 0 } -default_val : /default/i /(?:')?[\w\d.-]*(?:')?/ +default_val : /default/i /(?:')?[\w\d:.-]*(?:')?/ { $item[2] =~ s/'//g; $return = $item[2];