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

Method Item_decimal

sql/item.cc:1161–1172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1159
1160
1161Item_decimal::Item_decimal(const char *str_arg, uint length,
1162 const CHARSET_INFO *charset)
1163{
1164 str2my_decimal(E_DEC_FATAL_ERROR, str_arg, length, charset, &decimal_value);
1165 item_name.set(str_arg);
1166 decimals= (uint8) decimal_value.frac;
1167 fixed= 1;
1168 max_length= my_decimal_precision_to_length_no_truncation(decimal_value.intg +
1169 decimals,
1170 decimals,
1171 unsigned_flag);
1172}
1173
1174Item_decimal::Item_decimal(longlong val, bool unsig)
1175{

Callers

nothing calls this directly

Calls 7

int2my_decimalFunction · 0.85
double2my_decimalFunction · 0.85
my_decimal2decimalFunction · 0.85
binary2my_decimalFunction · 0.85
str2my_decimalFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected