提交 8b549b4e 编写于 作者: H hjxilinx

fix bug issue #804

上级 0d963c5a
......@@ -1043,10 +1043,10 @@ static bool max_func_setup(SQLFunctionCtx *pCtx) {
*((int32_t *)pCtx->aOutputBuf) = INT32_MIN;
break;
case TSDB_DATA_TYPE_FLOAT:
*((float *)pCtx->aOutputBuf) = -FLT_MIN;
*((float *)pCtx->aOutputBuf) = -FLT_MAX;
break;
case TSDB_DATA_TYPE_DOUBLE:
*((double *)pCtx->aOutputBuf) = -DBL_MIN;
*((double *)pCtx->aOutputBuf) = -DBL_MAX;
break;
case TSDB_DATA_TYPE_BIGINT:
*((int64_t *)pCtx->aOutputBuf) = INT64_MIN;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册