This commit is contained in:
slguan 2019-09-18 17:04:33 +08:00
parent c00c4c5531
commit f697e07983
1 changed files with 7 additions and 1 deletions

View File

@ -3293,7 +3293,13 @@ bool spread_function(SQLFunctionCtx *pCtx) {
}
}
} else {
// do nothing
if (pCtx->intermediateBuf[0].dKey > pCtx->intermediateBuf[1].dKey) {
pCtx->intermediateBuf[0].dKey = pCtx->intermediateBuf[1].dKey;
}
if (pCtx->intermediateBuf[3].dKey < pCtx->intermediateBuf[2].dKey) {
pCtx->intermediateBuf[3].dKey = pCtx->intermediateBuf[2].dKey;
}
}
goto _spread_over;