1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-1040 Fix returnedColumn assumption

Code appears to assume a simple returned column is derrived when that
may not always be the case.
This commit is contained in:
Andrew Hutchings
2017-11-29 14:47:05 +00:00
parent 7476bf6837
commit 7fe55926ec

View File

@ -112,7 +112,7 @@ ParseTree* replaceRefCol(ParseTree*& n, CalpontSelectExecutionPlan::ReturnedColu
else if (rc) else if (rc)
{ {
SimpleColumn* sc = dynamic_cast<SimpleColumn*>(rc); SimpleColumn* sc = dynamic_cast<SimpleColumn*>(rc);
if (sc) if (sc && (sc->colPosition() > -1))
{ {
ReturnedColumn* tmp = derivedColList[sc->colPosition()]->clone(); ReturnedColumn* tmp = derivedColList[sc->colPosition()]->clone();
delete sc; delete sc;