don't sort the primary columns because order matters for indexes
Alexander Hartmaier [Fri, 15 Jan 2010 18:44:04 +0000 (18:44 +0000)]
lib/SQL/Translator/Parser/DBIx/Class.pm

index 2aa5098..dcf8bba 100644 (file)
@@ -217,7 +217,7 @@ sub parse {
                 
                 # Make sure we dont create additional indexes for the
                 # primary columns
-                my $pk_test = join("\x00", sort @primary);
+                my $pk_test = join("\x00", @primary);
                 next if $key_test eq $pk_test;
 
                 if (scalar(@keys)) {