You've already forked mariadb-columnstore-engine
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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user