提交 4fcff629 编写于 作者: M Michael Meskes

Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the values to substract.

上级 1c3722f2
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册