From: Justin Hunter Date: Sun, 12 Jul 2009 15:19:51 +0000 (-0700) Subject: call it a NORMAL index, not NON_UNIQUE X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8e50a529fb0cf26456245e1d40b06dbb0d2bcf50;p=dbsrgits%2FSQL-Translator-2.0-ish.git call it a NORMAL index, not NON_UNIQUE --- diff --git a/lib/SQL/Translator/Parser/DBI.pm b/lib/SQL/Translator/Parser/DBI.pm index 4b26606..35f0a36 100644 --- a/lib/SQL/Translator/Parser/DBI.pm +++ b/lib/SQL/Translator/Parser/DBI.pm @@ -147,7 +147,7 @@ sub _add_indexes { my ($index_name, $index_type, @index_cols); while (my $index_col = $index_info->fetchrow_hashref) { $index_name = $index_col->{INDEX_NAME}; - $index_type = $index_col->{NON_UNIQUE} ? 'NON_UNIQUE' : 'UNIQUE'; + $index_type = $index_col->{NON_UNIQUE} ? 'NORMAL' : 'UNIQUE'; push @index_cols, $index_col->{COLUMN_NAME}; } my $index = Index->new({ name => $index_name, type => $index_type });