| 2699 | */ |
| 2700 | |
| 2701 | static const LEX_CSTRING *view_algorithm(TABLE_LIST *table) |
| 2702 | { |
| 2703 | static const LEX_CSTRING undefined= { STRING_WITH_LEN("UNDEFINED") }; |
| 2704 | static const LEX_CSTRING merge= { STRING_WITH_LEN("MERGE") }; |
| 2705 | static const LEX_CSTRING temptable= { STRING_WITH_LEN("TEMPTABLE") }; |
| 2706 | switch (table->algorithm) { |
| 2707 | case VIEW_ALGORITHM_TMPTABLE: |
| 2708 | return &temptable; |
| 2709 | case VIEW_ALGORITHM_MERGE: |
| 2710 | return &merge; |
| 2711 | default: |
| 2712 | DBUG_ASSERT(0); // never should happen |
| 2713 | /* fall through */ |
| 2714 | case VIEW_ALGORITHM_UNDEFINED: |
| 2715 | return &undefined; |
| 2716 | } |
| 2717 | } |
| 2718 | |
| 2719 | |
| 2720 | static bool append_at_host(THD *thd, String *buffer, const LEX_CSTRING *host) |
no outgoing calls
no test coverage detected