1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-24 14:20:59 +03:00

Merge pull request #392 from mariadb-corporation/MCOL-1070

MCOL-1070 Fix exists in view subquery
This commit is contained in:
David.Hall
2018-02-02 13:09:51 -06:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -399,6 +399,7 @@ void SubQueryTransformer::updateCorrelateInfo()
sc->schemaName("");
sc->tableName(fVtable.name());
sc->tableAlias(fVtable.alias());
sc->viewName(fVtable.view());
sc->oid(fVtable.columnOid(k->second));
sc->columnName(fVtable.columns()[k->second]->columnName());
const CalpontSystemCatalog::ColType& ct = fVtable.columnType(k->second);

View File

@@ -1810,6 +1810,11 @@ SimpleColumn* buildSimpleColFromDerivedTable(gp_walk_info& gwi, Item_field* ifp)
{
sc->derivedTable(derivedName);
sc->derivedRefCol(cols[j].get());
if (tblList->belong_to_view)
{
sc->viewName(lower(tblList->belong_to_view->alias));
}
}
break;
}