diff options
author | Michael Meskes | 2008-04-10 10:46:34 +0000 |
---|---|---|
committer | Michael Meskes | 2008-04-10 10:46:34 +0000 |
commit | a0f770dbdcfc1378aab4c97f372c325d449f7612 (patch) | |
tree | 7fb40fec2403032a73dc48cd5d331b8f79ca1183 | |
parent | 19d262540cd3d42694cd0c0962a82eefa8488b5b (diff) |
Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the values to substract.
-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 f1af271e3ad..681d9011938 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; |