提交 d4a38245 编写于 作者: G Ganlin Zhao

add some check

上级 763e8bd6
...@@ -2432,6 +2432,9 @@ int32_t lastFunction(SqlFunctionCtx* pCtx) { ...@@ -2432,6 +2432,9 @@ int32_t lastFunction(SqlFunctionCtx* pCtx) {
} }
static void firstLastTransferInfo(SFirstLastRes* pInput, SFirstLastRes* pOutput) { static void firstLastTransferInfo(SFirstLastRes* pInput, SFirstLastRes* pOutput) {
if (!pInput->hasResult) {
return;
}
pOutput->bytes = pInput->bytes; pOutput->bytes = pInput->bytes;
TSKEY *tsIn = (TSKEY*)(pInput->buf + pInput->bytes); TSKEY *tsIn = (TSKEY*)(pInput->buf + pInput->bytes);
TSKEY *tsOut = (TSKEY*)(pOutput->buf + pInput->bytes); TSKEY *tsOut = (TSKEY*)(pOutput->buf + pInput->bytes);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册