Make sure to get the constraint columns in the right order.
Dagfinn Ilmari Mannsåker [Tue, 5 Feb 2008 16:32:20 +0000 (16:32 +0000)]
lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm

index e687e75..3be38e2 100644 (file)
@@ -83,6 +83,7 @@ sub _table_uniq_info {
             SELECT constraint_name, ucc.column_name
             FROM user_constraints JOIN user_cons_columns ucc USING (constraint_name)
             WHERE ucc.table_name=? AND constraint_type='U'
+            ORDER BY ucc.position
         },
         {}, 1);