mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the values to substract.
This commit is contained in:
parent
1c3722f280
commit
4fcff62991
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user