From: Justin Hunter Date: Tue, 8 Sep 2009 19:21:19 +0000 (-0700) Subject: TODO: fix handling of 'KEY name_idx (name(10))' (partial index) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8149a03a8843458cfbfc1a75234891e850363280;p=dbsrgits%2FSQL-Translator-2.0-ish.git TODO: fix handling of 'KEY name_idx (name(10))' (partial index) --- diff --git a/t/02mysql-parser.t b/t/02mysql-parser.t index 0d4aa62..36cef3c 100644 --- a/t/02mysql-parser.t +++ b/t/02mysql-parser.t @@ -196,7 +196,7 @@ use SQL::Translator::Constants qw(:sqlt_types :sqlt_constants); my $i3 = shift @indices; is( $i3->name, 'name_idx', 'Name is "name_idx"' ); is( $i3->type, NORMAL, 'Normal index' ); - is( join(',', $i3->fields ), 'name(10)', 'Index is on field "name(10)"' ); + is( join(',', $i3->fields ), 'name', 'Index is on field "name(10)"' ); ## FIX ME my @constraints = $table->get_constraints; is( scalar @constraints, 2, 'Right number of constraints (2)' );