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

Reverse loop must still account for 0 based array

This commit is contained in:
David Hall
2016-03-08 16:46:35 -06:00
parent d425ce7f44
commit 6090c0e618

View File

@ -2545,7 +2545,7 @@ ReturnedColumn* buildFunctionColumn(Item_func* ifp, gp_walk_info& gwi, bool& non
else // where clause
{
stack<SPTP> tmpPtStack;
for (int32_t i = ifp->argument_count(); i>0; i--)
for (int32_t i = ifp->argument_count()-1; i>=0; i--)
{
if (isPredicateFunction((ifp->arguments()[i]), &gwi) && !gwi.ptWorkStack.empty())
{