From 309b71746292df2b6026a9c583f83fa269a3f643 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Thu, 10 Apr 2008 10:45:39 +0000 Subject: [PATCH] Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the values to substract. --- src/interfaces/ecpg/pgtypeslib/timestamp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/ecpg/pgtypeslib/timestamp.c b/src/interfaces/ecpg/pgtypeslib/timestamp.c index 19c6bb80de..7cfc7c5c66 100644 --- a/src/interfaces/ecpg/pgtypeslib/timestamp.c +++ b/src/interfaces/ecpg/pgtypeslib/timestamp.c @@ -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; -- 2.50.1