| 10871 | |
| 10872 | |
| 10873 | bool SELECT_LEX::vers_push_field(THD *thd, TABLE_LIST *table, |
| 10874 | const LEX_CSTRING field_name) |
| 10875 | { |
| 10876 | DBUG_ASSERT(field_name.str); |
| 10877 | Item_field *fld= new (thd->mem_root) Item_field(thd, &context, |
| 10878 | table->db, |
| 10879 | table->alias, |
| 10880 | field_name); |
| 10881 | if (unlikely(!fld) || unlikely(item_list.push_back(fld))) |
| 10882 | return true; |
| 10883 | |
| 10884 | if (thd->lex->view_list.elements) |
| 10885 | { |
| 10886 | LEX_CSTRING *l; |
| 10887 | if (unlikely(!(l= thd->make_clex_string(field_name.str, |
| 10888 | field_name.length))) || |
| 10889 | unlikely(thd->lex->view_list.push_back(l))) |
| 10890 | return true; |
| 10891 | } |
| 10892 | |
| 10893 | return false; |
| 10894 | } |
| 10895 | |
| 10896 | |
| 10897 | Item *Lex_trim_st::make_item_func_trim_std(THD *thd) const |
nothing calls this directly
no test coverage detected