You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-23 working_tpch1_compareLogOnly/onClauseJoins/bug4031.sql: Create a better search for the correct TABLE_LIST* object.
This commit is contained in:
@ -1606,14 +1606,17 @@ SimpleColumn* buildSimpleColFromDerivedTable(gp_walk_info& gwi, Item_field* ifp)
|
|||||||
// outer join inner table filter can not be moved in
|
// outer join inner table filter can not be moved in
|
||||||
// MariaDB 10.1: cached_table is never true for derived tables.
|
// MariaDB 10.1: cached_table is never true for derived tables.
|
||||||
// Find another way to determine outer_join
|
// Find another way to determine outer_join
|
||||||
if (ifp->context &&
|
TABLE_LIST* tblList = ifp->context->table_list;
|
||||||
ifp->context->table_list &&
|
while (tblList)
|
||||||
ifp->context->table_list->next_local &&
|
|
||||||
!ifp->context->table_list->next_local->outer_join)
|
|
||||||
// if ((ifp->cached_table && !ifp->cached_table->outer_join))
|
|
||||||
{
|
{
|
||||||
sc->derivedTable(derivedName);
|
if (strcasecmp(tblList->alias, ifp->table_name) == 0 &&
|
||||||
sc->derivedRefCol(cols[j].get());
|
!tblList->outer_join)
|
||||||
|
{
|
||||||
|
sc->derivedTable(derivedName);
|
||||||
|
sc->derivedRefCol(cols[j].get());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
tblList = tblList->next_local;
|
||||||
}
|
}
|
||||||
cols[j]->incRefCount();
|
cols[j]->incRefCount();
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user