tweaked composite key test to see if we can filter on it's composite pk. We can't, yet
This commit is contained in:
parent
3f31f41a71
commit
965c7a55c7
@ -945,7 +945,9 @@ main = do
|
|||||||
Right thePk = keyFromValues [ PersistInt64 $ fromIntegral x
|
Right thePk = keyFromValues [ PersistInt64 $ fromIntegral x
|
||||||
, PersistInt64 $ fromIntegral y]
|
, PersistInt64 $ fromIntegral y]
|
||||||
pPk <- insert p
|
pPk <- insert p
|
||||||
[Entity _ ret] <- select $ from $ return
|
[Entity _ ret] <- select $ from $ \p' -> do
|
||||||
|
where_ (p'^.PointId ==. val pPk)
|
||||||
|
return p'
|
||||||
liftIO $ do
|
liftIO $ do
|
||||||
ret `shouldBe` p
|
ret `shouldBe` p
|
||||||
pPk `shouldBe` thePk
|
pPk `shouldBe` thePk
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user