MCPcopy Create free account
hub / github.com/MariaDB/server / vers_push_field

Method vers_push_field

sql/sql_lex.cc:10873–10894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10871
10872
10873bool 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
10897Item *Lex_trim_st::make_item_func_trim_std(THD *thd) const

Callers

nothing calls this directly

Calls 2

make_clex_stringMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected