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
|
||||
, PersistInt64 $ fromIntegral y]
|
||||
pPk <- insert p
|
||||
[Entity _ ret] <- select $ from $ return
|
||||
[Entity _ ret] <- select $ from $ \p' -> do
|
||||
where_ (p'^.PointId ==. val pPk)
|
||||
return p'
|
||||
liftIO $ do
|
||||
ret `shouldBe` p
|
||||
pPk `shouldBe` thePk
|
||||
|
||||
Loading…
Reference in New Issue
Block a user