Fix #1181, correct qualify of function argument type
This commit is contained in:
committed by
Steve Chávez
parent
ab23ed7999
commit
63ead89470
+4
-1
@@ -4,6 +4,7 @@ import Test.Hspec
|
||||
import SpecHelper
|
||||
|
||||
import qualified Hasql.Pool as P
|
||||
import qualified Hasql.Transaction.Sessions as HT
|
||||
|
||||
import PostgREST.App (postgrest)
|
||||
import PostgREST.DbStructure (getDbStructure, getPgVersion)
|
||||
@@ -46,7 +47,9 @@ main = do
|
||||
|
||||
pool <- P.acquire (3, 10, toS testDbConn)
|
||||
|
||||
result <- P.use pool $ getDbStructure "test" =<< getPgVersion
|
||||
result <- P.use pool $ do
|
||||
ver <- getPgVersion
|
||||
HT.transaction HT.ReadCommitted HT.Read $ getDbStructure "test" ver
|
||||
|
||||
dbStructure <- pure $ either (panic.show) id result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user