postgresql/src/backend
Thomas G. Lockhart 3ec826f99a Repair two recently reported problems:
1) datetime_pl_span() added the seconds field before adding the months
 field.  This lead to erroneous results for e.g.
   select datetime '1999-11-30' + timespan '1 mon - 1 sec';
 Reverse the order of operations to add months first.
2) tm2timespan() did all intermediate math as integer, converting to double
 at the very end. This resulted in hidden overflows when given very large
 integer days, hours, etc. For example,
   select '74565 days'::timespan;
 produced the wrong result. Change code to ensure that doubles are used
 for intermediate calculations.
Thanks to Olivier PRENANT <ohp@pyrenet.fr> and
 Tulassay Zsolt <zsolt@tek.bke.hu> for problem reports and to Tom Lane for
 accurate analyses.
2000-01-04 07:53:27 +00:00
..
access Repair bugs discussed in pghackers thread of 15 May 1999: creation of a 1999-12-30 05:05:13 +00:00
bootstrap Required catalog changes for extended LONG attribute storage. 1999-12-20 10:40:43 +00:00
catalog Repair bugs discussed in pghackers thread of 15 May 1999: creation of a 1999-12-30 05:05:13 +00:00
commands Revise init_sequence so that it doesn't leak memory if the requested 1999-12-31 00:54:27 +00:00
executor Improve subquery error message, now says "More than one tuple returned 1999-12-29 22:57:17 +00:00
lib New LDOUT makefile variable for QNX os. 1999-12-13 22:35:27 +00:00
libpq New LDOUT makefile variable for QNX os. 1999-12-13 22:35:27 +00:00
main New LDOUT makefile variable for QNX os. 1999-12-13 22:35:27 +00:00
nodes Clean up handling of explicit NULL constants. Cases like 1999-12-24 06:43:34 +00:00
optimizer Generate double-sided LIKE indexquals that work even in weird locales, 1999-12-31 05:38:25 +00:00
parser Clean up handling of explicit NULL constants. Cases like 1999-12-24 06:43:34 +00:00
port Remove unused files. 1999-12-17 18:07:17 +00:00
postmaster I have done the QNX4 port with the current source tree. The number of 1999-12-16 01:25:23 +00:00
regex New LDOUT makefile variable for QNX os. 1999-12-13 22:35:27 +00:00
rewrite Some changes to prepare for LONG attributes. 1999-12-16 22:20:03 +00:00
storage Repair bugs discussed in pghackers thread of 15 May 1999: creation of a 1999-12-30 05:05:13 +00:00
tcop to live in a transaction before access to db 1999-12-22 00:07:16 +00:00
tioga New LDOUT makefile variable for QNX os. 1999-12-13 22:35:27 +00:00
utils Repair two recently reported problems: 2000-01-04 07:53:27 +00:00
Makefile I have done the QNX4 port with the current source tree. The number of 1999-12-16 01:25:23 +00:00