Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the values to substract.

This commit is contained in:
Michael Meskes 2008-04-10 10:45:39 +00:00
parent 66f0f69a23
commit 309b717462

View File

@ -898,7 +898,7 @@ PGTYPEStimestamp_sub(timestamp * ts1, timestamp * ts2, interval * iv)
if (TIMESTAMP_NOT_FINITE(*ts1) || TIMESTAMP_NOT_FINITE(*ts2))
return PGTYPES_TS_ERR_EINFTIME;
else
iv->time = (ts1 - ts2);
iv->time = (*ts1 - *ts2);
iv->month = 0;