From: Ken Youens-Clark Date: Mon, 4 Aug 2003 15:19:08 +0000 (+0000) Subject: New MySQL 4 syntax allows field names to be in backticks (and this is the X-Git-Tag: v0.04~364 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0d41bc9bca2791eca20c0ae6b06571ffad04be8b;p=dbsrgits%2FSQL-Translator.git New MySQL 4 syntax allows field names to be in backticks (and this is the default format of the latest "mysqldump"). --- diff --git a/lib/SQL/Translator/Parser/MySQL.pm b/lib/SQL/Translator/Parser/MySQL.pm index 7c10a0d..64134fc 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.27 2003-07-25 21:50:49 kycl4rk Exp $ +# $Id: MySQL.pm,v 1.28 2003-08-04 15:19:08 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.27 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.28 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; @@ -344,9 +344,9 @@ index : normal_index | fulltext_index | -table_name : WORD +table_name : NAME -field_name : WORD +field_name : NAME index_name : WORD