aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2008-04-10 10:46:22 +0000
committerMichael Meskes <meskes@postgresql.org>2008-04-10 10:46:22 +0000
commit4fcff6299145424f66c3790913cce598ef3cc465 (patch)
tree6f311b6876a088fce963a62d52fa8844a0206884 /src
parent1c3722f2806689a54239c8a721898525195e2cd5 (diff)
downloadpostgresql-4fcff6299145424f66c3790913cce598ef3cc465.tar.gz
postgresql-4fcff6299145424f66c3790913cce598ef3cc465.zip
Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the values to substract.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/pgtypeslib/timestamp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/pgtypeslib/timestamp.c b/src/interfaces/ecpg/pgtypeslib/timestamp.c
index 03aa5f07d08..c86f1a53b22 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;