1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-1793 UDAnF: Reset fValOut so if the function returns without value, NULL is the result.

This commit is contained in:
David Hall
2018-11-28 10:59:08 -06:00
parent 36d95e033b
commit bbe642b1bc
2 changed files with 2 additions and 0 deletions

View File

@ -708,6 +708,7 @@ void WF_udaf::operator()(int64_t b, int64_t e, int64_t c)
mcsv1sdk::mcsv1_UDAF::ReturnCode rc;
uint64_t colOut = fFieldIndex[0];
bool isNull = false;
fValOut.reset();
if ((fFrameUnit == WF__FRAME_ROWS) ||
(fPrev == -1) ||