diff options
author | Michael Meskes <meskes@postgresql.org> | 2008-04-10 10:45:39 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2008-04-10 10:45:39 +0000 |
commit | 309b71746292df2b6026a9c583f83fa269a3f643 (patch) | |
tree | 7ce45b9a98affc47db11e7b62114b092513b4b98 /src | |
parent | 66f0f69a236cb5f8642492aa42977b860cd6ce0b (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/pgtypeslib/timestamp.c b/src/interfaces/ecpg/pgtypeslib/timestamp.c index 19c6bb80de6..7cfc7c5c66d 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; |