Fix test suite compilation for PostgreSQL.
This commit is contained in:
parent
c8ee46f702
commit
dfacfcecf6
@ -836,10 +836,11 @@ main = do
|
|||||||
#if defined(WITH_POSTGRESQL) || defined(WITH_MYSQL)
|
#if defined(WITH_POSTGRESQL) || defined(WITH_MYSQL)
|
||||||
it "works on PostgreSQL and MySQL with <2 arguments" $
|
it "works on PostgreSQL and MySQL with <2 arguments" $
|
||||||
run $ do
|
run $ do
|
||||||
_ :: [Value (Maybe Int)] <- select $
|
_ :: [Value (Maybe Int)] <-
|
||||||
from $ \p -> do
|
select $
|
||||||
return (coalesce [p ^. PersonAge])
|
from $ \p -> do
|
||||||
return True
|
return (coalesce [p ^. PersonAge])
|
||||||
|
return ()
|
||||||
#else
|
#else
|
||||||
it "throws an exception on SQLite with <2 arguments" $
|
it "throws an exception on SQLite with <2 arguments" $
|
||||||
run (select $
|
run (select $
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user