mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add GUC setting for Australian timezones. Uses new GUC boolean callback
functions to clear date cache. Allow regression tests to pass when timezone set.
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
--
|
||||
-- date, time arithmetic
|
||||
--
|
||||
-- needed so tests pass
|
||||
SET australian_timezones = 'off';
|
||||
SELECT date '1981-02-03' + time '04:05:06' AS "Date + Time";
|
||||
Date + Time
|
||||
------------------------------
|
||||
|
@ -4,6 +4,8 @@
|
||||
--
|
||||
-- date, time arithmetic
|
||||
--
|
||||
-- needed so tests pass
|
||||
SET australian_timezones = 'off';
|
||||
SELECT date '1981-02-03' + time '04:05:06' AS "Date + Time";
|
||||
Date + Time
|
||||
------------------------------
|
||||
|
@ -4,6 +4,8 @@
|
||||
--
|
||||
-- date, time arithmetic
|
||||
--
|
||||
-- needed so tests pass
|
||||
SET australian_timezones = 'off';
|
||||
SELECT date '1981-02-03' + time '04:05:06' AS "Date + Time";
|
||||
Date + Time
|
||||
------------------------------
|
||||
|
@ -4,6 +4,8 @@
|
||||
-- Shorthand values
|
||||
-- Not directly usable for regression testing since these are not constants.
|
||||
-- So, just try to test parser and hope for the best - thomas 97/04/26
|
||||
-- needed so tests pass
|
||||
SET australian_timezones = 'off';
|
||||
SELECT (timestamp 'today' = (timestamp 'yesterday' + interval '1 day')) as "True";
|
||||
True
|
||||
------
|
||||
|
@ -1,10 +1,11 @@
|
||||
--
|
||||
-- HOROLOGY
|
||||
--
|
||||
|
||||
--
|
||||
-- date, time arithmetic
|
||||
--
|
||||
-- needed so tests pass
|
||||
SET australian_timezones = 'off';
|
||||
|
||||
SELECT date '1981-02-03' + time '04:05:06' AS "Date + Time";
|
||||
|
||||
|
@ -1,10 +1,11 @@
|
||||
--
|
||||
-- DATETIME
|
||||
--
|
||||
|
||||
-- Shorthand values
|
||||
-- Not directly usable for regression testing since these are not constants.
|
||||
-- So, just try to test parser and hope for the best - thomas 97/04/26
|
||||
-- needed so tests pass
|
||||
SET australian_timezones = 'off';
|
||||
|
||||
SELECT (timestamp 'today' = (timestamp 'yesterday' + interval '1 day')) as "True";
|
||||
SELECT (timestamp 'today' = (timestamp 'tomorrow' - interval '1 day')) as "True";
|
||||
|
Reference in New Issue
Block a user