]> granicus.if.org Git - postgresql/commit
Accept an INTERVAL argument for SET TIME ZONE per SQL99.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Thu, 18 Oct 2001 17:30:21 +0000 (17:30 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Thu, 18 Oct 2001 17:30:21 +0000 (17:30 +0000)
commit9310075a13c28fc77224094d2cf3cc1c03446b4a
tree64e430f8525c5782e26d3ddede403829836909c6
parent6254465d0621f724cdc9a1e99da24fa8a29f579d
Accept an INTERVAL argument for SET TIME ZONE per SQL99.
 Modified the parser and the SET handlers to use full Node structures
 rather than simply a character string argument.
Implement INTERVAL() YEAR TO MONTH (etc) syntax per SQL99.
 Does not yet accept the goofy string format that goes along with, but
 this should be fairly straight forward to fix now as a bug or later
 as a feature.
Implement precision for the INTERVAL() type.
 Use the typmod mechanism for both of INTERVAL features.
Fix the INTERVAL syntax in the parser:
 opt_interval was in the wrong place.
INTERVAL is now a reserved word, otherwise we get reduce/reduce errors.
Implement an explicit date_part() function for TIMETZ.
 Should fix coersion problem with INTERVAL reported by Peter E.
Fix up some error messages for date/time types.
 Use all caps for type names within message.
Fix recently introduced side-effect bug disabling 'epoch' as a recognized
 field for date_part() etc. Reported by Peter E. (??)
Bump catalog version number.
Rename "microseconds" current transaction time field
 from ...Msec to ...Usec. Duh!
date/time regression tests updated for reference platform, but a few
 changes will be necessary for others.
23 files changed:
src/backend/access/transam/xact.c
src/backend/commands/variable.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/tcop/utility.c
src/backend/utils/adt/date.c
src/backend/utils/adt/datetime.c
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/timestamp.c
src/include/access/xact.h
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/commands/variable.h
src/include/nodes/parsenodes.h
src/include/utils/date.h
src/include/utils/nabstime.h
src/include/utils/timestamp.h
src/interfaces/odbc/convert.c
src/test/regress/expected/horology.out
src/test/regress/expected/timestamp.out
src/test/regress/expected/timestamptz.out
src/test/regress/sql/horology.sql