1
0
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:
Bruce Momjian
2001-06-18 16:14:44 +00:00
parent 49ce6fff1d
commit 7dac778561
12 changed files with 78 additions and 54 deletions

View File

@ -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
------------------------------

View File

@ -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
------------------------------

View File

@ -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
------------------------------

View File

@ -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
------

View File

@ -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";

View File

@ -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";