| 4800 | */ |
| 4801 | |
| 4802 | bool JOIN::prepare_result(List<Item> **columns_list) |
| 4803 | { |
| 4804 | DBUG_ENTER("JOIN::prepare_result"); |
| 4805 | |
| 4806 | error= 0; |
| 4807 | /* Create result tables for materialized views. */ |
| 4808 | if (!zero_result_cause && |
| 4809 | select_lex->handle_derived(thd->lex, DT_CREATE)) |
| 4810 | goto err; |
| 4811 | |
| 4812 | if (result->prepare2(this)) |
| 4813 | goto err; |
| 4814 | |
| 4815 | if ((select_lex->options & OPTION_SCHEMA_TABLE) && |
| 4816 | get_schema_tables_result(this, PROCESSED_BY_JOIN_EXEC)) |
| 4817 | goto err; |
| 4818 | |
| 4819 | DBUG_RETURN(FALSE); |
| 4820 | |
| 4821 | err: |
| 4822 | error= 1; |
| 4823 | DBUG_RETURN(TRUE); |
| 4824 | } |
| 4825 | |
| 4826 | |
| 4827 | /** |
nothing calls this directly
no test coverage detected