147
149
if (!(derived_result= new select_union))
148
150
DBUG_RETURN(TRUE); // out of memory
150
153
// st_select_lex_unit::prepare correctly work for single select
151
154
if ((res= unit->prepare(thd, derived_result, 0)))
154
157
if ((res= check_duplicate_names(unit->types, 0)))