diff --git a/dbcon/mysql/ha_mcs_execplan.cpp b/dbcon/mysql/ha_mcs_execplan.cpp index 8ae75b42d..1abed2c99 100755 --- a/dbcon/mysql/ha_mcs_execplan.cpp +++ b/dbcon/mysql/ha_mcs_execplan.cpp @@ -2451,11 +2451,12 @@ SimpleColumn* buildSimpleColFromDerivedTable(gp_walk_info& gwi, Item_field* ifp) sc->timeZone(gwi.thd->variables.time_zone->get_name()->ptr()); if (!viewName.empty()) { - sc->viewName(viewName); + // TODO: Remove lower when MCOL-4144 fixed + sc->viewName(lower(viewName)); } else { - sc->viewName(csep->derivedTbView()); + sc->viewName(lower(csep->derivedTbView())); } sc->resultType(cols[j]->resultType()); sc->hasAggregate(cols[j]->hasAggregate());