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

Method change_columns

sql/sql_analyse.cc:1175–1200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1173
1174
1175bool analyse::change_columns(THD *thd, List<Item> &field_list)
1176{
1177 MEM_ROOT *mem_root= thd->mem_root;
1178 field_list.empty();
1179
1180 func_items[0]= new (mem_root) Item_proc_string(thd, "Field_name", 255);
1181 func_items[1]= new (mem_root) Item_proc_string(thd, "Min_value", 255);
1182 func_items[1]->set_maybe_null();
1183 func_items[2]= new (mem_root) Item_proc_string(thd, "Max_value", 255);
1184 func_items[2]->set_maybe_null();
1185 func_items[3]= new (mem_root) Item_proc_int(thd, "Min_length");
1186 func_items[4]= new (mem_root) Item_proc_int(thd, "Max_length");
1187 func_items[5]= new (mem_root) Item_proc_int(thd, "Empties_or_zeros");
1188 func_items[6]= new (mem_root) Item_proc_int(thd, "Nulls");
1189 func_items[7]= new (mem_root) Item_proc_string(thd, "Avg_value_or_avg_length", 255);
1190 func_items[8]= new (mem_root) Item_proc_string(thd, "Std", 255);
1191 func_items[8]->set_maybe_null();
1192 func_items[9]= new (mem_root) Item_proc_string(thd, "Optimal_fieldtype",
1193 MY_MAX(64,
1194 output_str_length));
1195
1196 for (uint i = 0; i < array_elements(func_items); i++)
1197 field_list.push_back(func_items[i], thd->mem_root);
1198 result_fields = field_list;
1199 return 0;
1200} // analyse::change_columns
1201
1202int compare_double(const double *s, const double *t)
1203{

Callers 2

exec_innerMethod · 0.80
mysql_test_selectFunction · 0.80

Calls 3

set_maybe_nullMethod · 0.80
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected