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 filter comparison.

Compare ParseTree by dereferencing pointers.
This commit is contained in:
Denis Khalikov
2021-07-12 15:27:53 +03:00
parent 4069a48f42
commit dc51dbf6cf
3 changed files with 5 additions and 3 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() == *sptp.get())
{
gwi.ptWorkStack.pop();
}