fix postgres tests
This commit is contained in:
parent
8aff51b4d8
commit
6b12edbd8c
@ -1053,12 +1053,12 @@ testInsertSelectWithConflict =
|
|||||||
from $ \p -> return $ OneUnique <# val "test" <&> (p ^. PersonFavNum)
|
from $ \p -> return $ OneUnique <# val "test" <&> (p ^. PersonFavNum)
|
||||||
)
|
)
|
||||||
(\current excluded -> [])
|
(\current excluded -> [])
|
||||||
uniques1 <- select $ from $ \u -> return u
|
uniques1 <- select $ Experimental.from $ table @OneUnique
|
||||||
n2 <- EP.insertSelectWithConflictCount UniqueValue (
|
n2 <- EP.insertSelectWithConflictCount UniqueValue (
|
||||||
from $ \p -> return $ OneUnique <# val "test" <&> (p ^. PersonFavNum)
|
from $ \p -> return $ OneUnique <# val "test" <&> (p ^. PersonFavNum)
|
||||||
)
|
)
|
||||||
(\current excluded -> [])
|
(\current excluded -> [])
|
||||||
uniques2 <- select $ from $ \u -> return u
|
uniques2 <- select $ Experimental.from $ table @OneUnique
|
||||||
liftIO $ n1 `shouldBe` 3
|
liftIO $ n1 `shouldBe` 3
|
||||||
liftIO $ n2 `shouldBe` 0
|
liftIO $ n2 `shouldBe` 0
|
||||||
let test = map (OneUnique "test" . personFavNum) [p1,p2,p3]
|
let test = map (OneUnique "test" . personFavNum) [p1,p2,p3]
|
||||||
@ -1073,7 +1073,7 @@ testInsertSelectWithConflict =
|
|||||||
from $ \p -> return $ OneUnique <# val "test" <&> (p ^. PersonFavNum)
|
from $ \p -> return $ OneUnique <# val "test" <&> (p ^. PersonFavNum)
|
||||||
)
|
)
|
||||||
(\current excluded -> [OneUniqueValue =. val 4 +. (current ^. OneUniqueValue) +. (excluded ^. OneUniqueValue)])
|
(\current excluded -> [OneUniqueValue =. val 4 +. (current ^. OneUniqueValue) +. (excluded ^. OneUniqueValue)])
|
||||||
uniques1 <- select $ from $ \u -> return u
|
uniques1 <- select $ Experimental.from $ table @OneUnique
|
||||||
n2 <- EP.insertSelectWithConflictCount UniqueValue (
|
n2 <- EP.insertSelectWithConflictCount UniqueValue (
|
||||||
from $ \p -> return $ OneUnique <# val "test" <&> (p ^. PersonFavNum)
|
from $ \p -> return $ OneUnique <# val "test" <&> (p ^. PersonFavNum)
|
||||||
)
|
)
|
||||||
@ -1255,7 +1255,7 @@ testLateralQuery = do
|
|||||||
run $ do
|
run $ do
|
||||||
res <- select $ do
|
res <- select $ do
|
||||||
l :& c <- Experimental.from $ table @Lord
|
l :& c <- Experimental.from $ table @Lord
|
||||||
`leftJoinLateral` (\lord -> do
|
`LeftOuterJoin` (\lord -> do
|
||||||
deed <- Experimental.from $ table @Deed
|
deed <- Experimental.from $ table @Deed
|
||||||
where_ $ lord ^. LordId ==. deed ^. DeedOwnerId
|
where_ $ lord ^. LordId ==. deed ^. DeedOwnerId
|
||||||
pure $ countRows @Int)
|
pure $ countRows @Int)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user