Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
bulkCreate would have problems with a disparate field list. Closes #736 #738
I would say that
INSERT INTO `TasksUsers` (`TaskId`,`UserId`) VALUES (1,1),(2,1)
is correct. We create one user and assigns two tasks. The userid is the same, but taskid is different
Actually, to make this test completely valid we should also check the correct order of the columns (i.e. also assert that the order is TaskId, UserId and not the other way around). The problem then becomes that we have to take into account different qouting methods. Perhaps we could assert that indexof taskid < indexof userid?