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

Method val_real_from_decimal

sql/item.cc:191–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191double Item::val_real_from_decimal()
192{
193 /* Note that fix_fields may not be called for Item_avg_field items */
194 double result;
195 my_decimal value_buff, *dec_val= val_decimal(&value_buff);
196 if (null_value)
197 return 0.0;
198 my_decimal2double(E_DEC_FATAL_ERROR, dec_val, &result);
199 return result;
200}
201
202
203longlong Item::val_int_from_decimal()

Callers

nothing calls this directly

Calls 2

val_decimalFunction · 0.85
my_decimal2doubleFunction · 0.85

Tested by

no test coverage detected