pgsql/src backend/parser/gram.y backend/utils/ ...

From: thomas(at)postgresql(dot)org
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src backend/parser/gram.y backend/utils/ ...
Date: 2001-10-20 01:02:22
Message-ID: 200110200102.f9K12MX27648@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql
Changes by: thomas(at)postgresql(dot)org 01/10/19 21:02:22

Modified files:
src/backend/parser: gram.y
src/backend/utils/adt: datetime.c nabstime.c timestamp.c
src/test/regress/expected: horology.out timestamptz.out

Log message:
Fix transposed arguments for typmod for one INTERVAL production.
Mask both typmod subfields for INTERVAL to avoid setting the high bit,
per dire warning from Tom Lane.
Clear tmask for DTK_ISO_TIME case to avoid time zone troubles.
Symptom reported by Tom Lane.
Clean up checking for valid time zone info in output routine.
This should now work for both SQL99 and Unix-style time zones.
Put in explicit check for INTERVAL() typmod rounding to avoid accumulating
cruft in the lower bits. Not sure that this helps, but we'll need to do
something. The symptom is visible with a query like
select interval(2) '10000 days 01:02:03.040506';
Regression tests are patched to repair the Tom Lane symptom, and all pass.

Browse pgsql-committers by date

  From Date Subject
Next Message momjian 2001-10-20 02:55:39 pgsql/ /HISTORY oc/src/sgml/sql.sgml oc/src/sg ...
Previous Message tgl 2001-10-19 22:43:50 pgsql/src/pl/plperl plperl.c