@@ -606,7 +606,11 @@ isFormatError i FormatError{..}
606606-- that 'testConnect' connects to the same database every time it is called.
607607withTestEnv :: ByteString -> (TestEnv -> IO a) -> IO a
608608withTestEnv 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'"
613+
610614 cb TestEnv
611615 { conn = conn
612616 , withConn = withConn