From: Ken Youens-Clark Date: Tue, 26 Aug 2003 04:01:36 +0000 (+0000) Subject: Fixed drop table rule. X-Git-Tag: v0.04~219 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2e8dfb7635467806b90243dbb73d6b873e3175a5;p=dbsrgits%2FSQL-Translator.git Fixed drop table rule. --- diff --git a/lib/SQL/Translator/Parser/MySQL.pm b/lib/SQL/Translator/Parser/MySQL.pm index 32e2dd9..c280ab5 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.37 2003-08-21 02:38:34 kycl4rk Exp $ +# $Id: MySQL.pm,v 1.38 2003-08-26 04:01:36 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.37 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.38 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; @@ -167,7 +167,7 @@ use : /use/i WORD ';' set : /set/i /[^;]+/ ';' { @table_comments = () } -drop : /drop/i TABLE ';' +drop : /drop/i TABLE /[^;]+/ ';' drop : /drop/i WORD(s) ';' { @table_comments = () }