diff options
author | Michael Meskes <meskes@postgresql.org> | 2008-04-10 10:46:56 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2008-04-10 10:46:56 +0000 |
commit | a27b961a0cba1e263489450a826f8bbe22a11cf2 (patch) | |
tree | 6cbb7f029c02f4613863b39788d9adfbad744dc0 /src | |
parent | 0bcf76311f61d6897cb006f07767d5839a92c75d (diff) | |
download | postgresql-a27b961a0cba1e263489450a826f8bbe22a11cf2.tar.gz postgresql-a27b961a0cba1e263489450a826f8bbe22a11cf2.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.c | 4 |
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; |