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

REL8_1_STABLE
Michael Meskes 18 years ago
parent 19d262540c
commit a0f770dbdc
  1. 2
      src/interfaces/ecpg/pgtypeslib/timestamp.c

@ -804,7 +804,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;

Loading…
Cancel
Save