From: Michael Meskes Date: Thu, 10 Apr 2008 10:46:22 +0000 (+0000) Subject: Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the values to substract. X-Git-Tag: REL8_3_2~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fcff6299145424f66c3790913cce598ef3cc465;p=postgresql Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the values to substract. --- diff --git a/src/interfaces/ecpg/pgtypeslib/timestamp.c b/src/interfaces/ecpg/pgtypeslib/timestamp.c index 03aa5f07d0..c86f1a53b2 100644 --- a/src/interfaces/ecpg/pgtypeslib/timestamp.c +++ b/src/interfaces/ecpg/pgtypeslib/timestamp.c @@ -867,7 +867,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;