aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/pgtypeslib/timestamp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/pgtypeslib/timestamp.c b/src/interfaces/ecpg/pgtypeslib/timestamp.c
index 19146d03e10..0c101f27ff9 100644
--- a/src/interfaces/ecpg/pgtypeslib/timestamp.c
+++ b/src/interfaces/ecpg/pgtypeslib/timestamp.c
@@ -787,9 +787,9 @@ PGTYPEStimestamp_sub(timestamp *ts1, timestamp *ts2, interval *iv)
return PGTYPES_TS_ERR_EINFTIME;
else
#ifdef HAVE_INT64_TIMESTAMP
- iv->time = (ts1 - ts2);
+ iv->time = (*ts1 - *ts2);
#else
- iv->time = JROUND(ts1 - ts2);
+ iv->time = JROUND(*ts1 - *ts2);
#endif
iv->month = 0;