improve uniq_to_primary test
Rafael Kitover [Tue, 7 Jun 2011 06:02:22 +0000 (02:02 -0400)]
t/lib/dbixcsl_common_tests.pm

index e8b3225..f15f949 100644 (file)
@@ -1435,7 +1435,10 @@ sub create {
                 id INTEGER NOT NULL UNIQUE,
                 id1 INTEGER NOT NULL,
                 id2 INTEGER NOT NULL,
-                UNIQUE (id1, id2)
+                id3 INTEGER $self->{null},
+                id4 INTEGER NOT NULL,
+                UNIQUE (id1, id2),
+                UNIQUE (id3, id4)
             ) $self->{innodb}
         },
     );