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

Method val_decimal_from_int

sql/item.cc:161–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160
161my_decimal *Item::val_decimal_from_int(my_decimal *decimal_value)
162{
163 longlong nr= val_int();
164 if (null_value)
165 return 0;
166 int2my_decimal(E_DEC_FATAL_ERROR, nr, unsigned_flag, decimal_value);
167 return decimal_value;
168}
169
170
171my_decimal *Item::val_decimal_from_string(my_decimal *decimal_value)

Callers

nothing calls this directly

Calls 2

val_intFunction · 0.85
int2my_decimalFunction · 0.85

Tested by

no test coverage detected