postgres/src
Michael Paquier 7aa81c61ec Fix precision handling for some COERCE_SQL_SYNTAX functions
f193883 has been incorrectly setting up the precision used in the
timestamp compilations returned by the following functions:
- LOCALTIME
- LOCALTIMESTAMP
- CURRENT_TIME
- CURRENT_TIMESTAMP

Specifying an out-of-range precision for CURRENT_TIMESTAMP and
LOCALTIMESTAMP was raising a WARNING without adjusting the precision,
leading to a subsequent error.  LOCALTIME and CURRENT_TIME raised a
WARNING without an error, still the precision given to the internal
routines was not correct, so let's be clean.

Ian has reported the problems in timestamp.c, while I have noticed the
ones in date.c.  Regression tests are added for all of them with
precisions high enough to provide coverage for the warnings, something
that went missing up to this commit.

Author: Ian Lawrence Barwick, Michael Paquier
Discussion: https://postgr.es/m/CAB8KJ=jQEnn9sYG+N752spt68wMrhmT-ocHCh4oeNmHF82QMWA@mail.gmail.com
2022-12-30 20:47:57 +09:00
..
backend Fix precision handling for some COERCE_SQL_SYNTAX functions 2022-12-30 20:47:57 +09:00
bin Reorder some object files in makefiles 2022-12-28 15:10:27 +01:00
common Change argument of appendBinaryStringInfo from char * to void * 2022-12-30 11:05:09 +01:00
fe_utils Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
include Change argument of appendBinaryStringInfo from char * to void * 2022-12-30 11:05:09 +01:00
interfaces Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
makefiles Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pl perl: Hide warnings inside perl.h when using gcc compatible compiler 2022-12-29 12:47:29 -08:00
port Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
template Move darwin sysroot determination into separate file 2022-09-01 16:54:19 -07:00
test Fix precision handling for some COERCE_SQL_SYNTAX functions 2022-12-30 20:47:57 +09:00
timezone Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
tools Reorder some object files in makefiles 2022-12-28 15:10:27 +01:00
tutorial Doc: sync src/tutorial/basics.source with SGML documentation. 2022-11-19 13:09:14 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in autoconf: Move export_dynamic determination to configure 2022-12-06 18:55:28 -08:00
Makefile.shlib autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
meson.build Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00