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

Method val_int_from_decimal

sql/item.cc:203–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201
202
203longlong Item::val_int_from_decimal()
204{
205 /* Note that fix_fields may not be called for Item_avg_field items */
206 longlong result;
207 my_decimal value, *dec_val= val_decimal(&value);
208 if (null_value)
209 return 0;
210 my_decimal2int(E_DEC_FATAL_ERROR, dec_val, unsigned_flag, &result);
211 return result;
212}
213
214Item::Item():
215 is_expensive_cache(-1), rsize(0),

Callers

nothing calls this directly

Calls 2

val_decimalFunction · 0.85
my_decimal2intFunction · 0.85

Tested by

no test coverage detected