add some check
This commit is contained in:
parent
763e8bd6ae
commit
d4a38245a2
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue