diff options
| author | Bruce Momjian | 2000-09-29 22:00:49 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2000-09-29 22:00:49 +0000 |
| commit | 469ebeefd644e829facdb9fab2dc8b8a47352795 (patch) | |
| tree | 8c59f1a259d4f186468348988d8fe168e7f48166 /src/test/regress | |
| parent | 72ad5fe15c93fefa8debb0fc8ef5c85b560ffac7 (diff) | |
Please apply the following patch to fix problems with the AIX port
and the fmgr redesign.
It makes the homebrewn dl*() functions for more recent Versions of AIX
obsolete
by using the system dl*() functions instead.
It also fixes the expected file for the horology regression test.
Please regenerate configure from configure.in, I don't have the
environment/time.
Andreas
Diffstat (limited to 'src/test/regress')
| -rw-r--r-- | src/test/regress/expected/horology-1947-PDT.out | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/test/regress/expected/horology-1947-PDT.out b/src/test/regress/expected/horology-1947-PDT.out index b04f877b870..b467286bca3 100644 --- a/src/test/regress/expected/horology-1947-PDT.out +++ b/src/test/regress/expected/horology-1947-PDT.out @@ -2,6 +2,48 @@ -- HOROLOGY -- -- +-- date, time arithmetic +-- +SELECT date '1981-02-03' + time '04:05:06' AS "Date + Time"; + Date + Time +------------------------------ + Tue Feb 03 04:05:06 1981 PST +(1 row) + +SELECT date '1991-02-03' + time with time zone '04:05:06 PST' AS "Date + Time PST"; + Date + Time PST +------------------------------ + Sun Feb 03 04:05:06 1991 PST +(1 row) + +SELECT date '2001-02-03' + time with time zone '04:05:06 UTC' AS "Date + Time UTC"; + Date + Time UTC +------------------------------ + Fri Feb 02 20:05:06 2001 PST +(1 row) + +SELECT date '1991-02-03' + interval '2 years' AS "Add Two Years"; + Add Two Years +------------------------------ + Wed Feb 03 00:00:00 1993 PST +(1 row) + +SELECT date '2001-12-13' - interval '2 years' AS "Subtract Two Years"; + Subtract Two Years +------------------------------ + Mon Dec 13 00:00:00 1999 PST +(1 row) + +SELECT date '1991-02-03' - time '04:05:06' AS "Subtract Time"; + Subtract Time +------------------------------ + Sat Feb 02 19:54:54 1991 PST +(1 row) + +SELECT date '1991-02-03' - time with time zone '04:05:06 UTC' AS "Subtract Time UTC"; +ERROR: Unable to identify an operator '-' for types 'date' and 'timetz' + You will have to retype this query using an explicit cast +-- -- timestamp, interval arithmetic -- SELECT timestamp '1996-03-01' - interval '1 second' AS "Feb 29"; |
