From: Ken Youens-Clark Date: Fri, 25 Jul 2003 21:50:49 +0000 (+0000) Subject: Added "character set" as field qualifier as this is part of MySQL 4 output. X-Git-Tag: v0.04~369 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=095b4549606a00ac36d8d9845a9324b5ebe9a762;p=dbsrgits%2FSQL-Translator.git Added "character set" as field qualifier as this is part of MySQL 4 output. --- diff --git a/lib/SQL/Translator/Parser/MySQL.pm b/lib/SQL/Translator/Parser/MySQL.pm index 151ae97..7c10a0d 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.26 2003-07-18 22:56:12 kycl4rk Exp $ +# $Id: MySQL.pm,v 1.27 2003-07-25 21:50:49 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.26 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.27 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; @@ -304,6 +304,13 @@ field_qualifier : unsigned } } +field_qualifier : /character set/i WORD + { + $return = { + character_set => $item[2], + } + } + reference_definition : /references/i table_name parens_field_list(?) match_type(?) on_delete_do(?) on_update_do(?) { $return = {