bool LEX::check_main_unit_semantics()
{
  if (unit.set_nest_level(0) ||
      unit.check_parameters(first_select_lex()))
    return TRUE;
  if (check_cte_dependencies_and_resolve_references())
    return TRUE;
  return FALSE;
}
bool LEX::check_main_unit_semantics()
{
  if (unit.set_nest_level(0) ||
      unit.check_parameters(first_select_lex()))
    return TRUE;
  if (check_cte_dependencies_and_resolve_references())
    return TRUE;
  return FALSE;
}