postgresql/src/test/regress
Tom Lane 3152bf722f Fix bugs with parsing signed hh:mm and hh:mm:ss fields in interval input.
DecodeInterval() failed to honor the "range" parameter (the special SQL
syntax for indicating which fields appear in the literal string) if the
time was signed.  This seems inappropriate, so make it work like the
not-signed case.  The inconsistency was introduced in my commit
f867339c01, which as noted in its log message
was only really focused on making SQL-compliant literals work per spec.
Including a sign here is not per spec, but if we're going to allow it
then it's reasonable to expect it to work like the not-signed case.

Also, remove bogus setting of tmask, which caused subsequent processing to
think that what had been given was a timezone and not an hh:mm(:ss) field,
thus confusing checks for redundant fields.  This seems to be an aboriginal
mistake in Lockhart's commit 2cf1642461.

Add regression test cases to illustrate the changed behaviors.

Back-patch as far as 8.4, where support for spec-compliant interval
literals was added.

Range problem reported and diagnosed by Amit Kapila, tmask problem by me.
2012-08-03 17:40:43 -04:00
..
data
expected Fix bugs with parsing signed hh:mm and hh:mm:ss fields in interval input. 2012-08-03 17:40:43 -04:00
input Change syntax of new CHECK NO INHERIT constraints 2012-07-24 16:01:32 -04:00
output Change syntax of new CHECK NO INHERIT constraints 2012-07-24 16:01:32 -04:00
sql Fix bugs with parsing signed hh:mm and hh:mm:ss fields in interval input. 2012-08-03 17:40:43 -04:00
.gitignore
GNUmakefile
Makefile
parallel_schedule Syntax support and documentation for event triggers. 2012-07-18 10:16:16 -04:00
pg_regress_main.c
pg_regress.c Use --nosync during make check's initdb call. 2012-07-21 19:56:22 -04:00
pg_regress.h
regress.c
regressplans.sh
resultmap
serial_schedule Syntax support and documentation for event triggers. 2012-07-18 10:16:16 -04:00
standby_schedule