@@ -606,7 +606,11 @@ isFormatError i FormatError{..}
606-- that 'testConnect' connects to the same database every time it is called.
606-- that 'testConnect' connects to the same database every time it is called.
607withTestEnv :: ByteString -> (TestEnv -> IO a) -> IO a
607withTestEnv :: ByteString -> (TestEnv -> IO a) -> IO a
608withTestEnv connstr cb =
608withTestEnv connstr cb =
609− withConn $ \conn ->
609+ withConn $ \conn -> do
610+ -- currently required for interval to work.
611+ -- we also test that this doesn't interfere with anything else
612+ execute_ conn "SET intervalstyle TO 'iso_8601'"
610 cb TestEnv
614 cb TestEnv
611 { conn = conn
615 { conn = conn
612 , withConn = withConn
616 , withConn = withConn