From: Michael Meskes Date: Thu, 10 Apr 2008 10:46:34 +0000 (+0000) Subject: Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the values to substract. X-Git-Tag: REL8_1_12~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0f770dbdcfc1378aab4c97f372c325d449f7612;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 f1af271e3a..681d901193 100644 --- a/src/interfaces/ecpg/pgtypeslib/timestamp.c +++ b/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;