@@ -39,6 +39,10 @@ testTime env@TestEnv{..} = TestCase $ do
39 checkRoundTrips env
39 checkRoundTrips env
40 execute_ conn "SET timezone TO 'Asia/Tokyo'"
40 execute_ conn "SET timezone TO 'Asia/Tokyo'"
41 checkRoundTrips env
41 checkRoundTrips env
42+ execute_ conn "SET timezone TO 'Asia/Kathmandu'"
44+ execute_ conn "SET timezone TO 'America/St_Johns'"
43initializeTable :: TestEnv -> IO ()
47initializeTable :: TestEnv -> IO ()
44initializeTable TestEnv{..} = withTransaction conn $ do
48initializeTable TestEnv{..} = withTransaction conn $ do
@@ -48,7 +52,7 @@ initializeTable TestEnv{..} = withTransaction conn $ do
48 let pop :: ByteString -> Double -> IO () = \x y ->
52 let pop :: ByteString -> Double -> IO () = \x y ->
49 replicateM_ numTests $ execute conn
53 replicateM_ numTests $ execute conn
50 [sql| INSERT INTO testtime (y) VALUES
54 [sql| INSERT INTO testtime (y) VALUES
51− ('1900-01-01 00:00:00+00'::timestamptz
55+ ('1936-01-01 00:00:00+00'::timestamptz
52 + ?::interval * ROUND(RANDOM() * ?)) |] (x,y)
56 + ?::interval * ROUND(RANDOM() * ?)) |] (x,y)
53 pop "1 microsecond" 6.3113904e15
57 pop "1 microsecond" 6.3113904e15
54 pop "10 microseconds" 6.3113904e14
58 pop "10 microseconds" 6.3113904e14