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

MCOL-4786 Fix wrong comparison for the filters.

Fix wrong comparison for the filters while creating case function.
This commit is contained in:
Denis Khalikov
2021-07-09 02:18:48 +03:00
parent 3391eda89d
commit adace6e0c7
3 changed files with 34 additions and 1 deletions

View File

@ -4427,7 +4427,7 @@ FunctionColumn* buildCaseFunction(Item_func* item, gp_walk_info& gwi, bool& nonS
gwi.inCaseStmt = true;
sptp.reset(buildParseTree((Item_func*)(item->arguments()[i]), gwi, nonSupport));
gwi.inCaseStmt = false;
if (!gwi.ptWorkStack.empty() && *gwi.ptWorkStack.top()->data() == sptp->data())
if (!gwi.ptWorkStack.empty() && gwi.ptWorkStack.top()->data() == sptp->data())
{
gwi.ptWorkStack.pop();
}