MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / field_decimal

Method field_decimal

sql/sql_analyse.h:156–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 int bin_size;
155public:
156 field_decimal(Item* a, select_analyse* b) :field_info(a,b)
157 {
158 bin_size= my_decimal_get_binary_size(a->max_length, a->decimals);
159 init_tree(&tree, 0, 0, bin_size, (qsort_cmp2)compare_decimal2,
160 0, 0, (void *)&bin_size);
161 };
162
163 void add();
164 void get_opt_type(String*, ha_rows);

Callers

nothing calls this directly

Calls 2

init_treeFunction · 0.85

Tested by

no test coverage detected