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

Method val_decimal_from_real

sql/item.cc:151–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150
151my_decimal *Item::val_decimal_from_real(my_decimal *decimal_value)
152{
153 double nr= val_real();
154 if (null_value)
155 return 0;
156 double2my_decimal(E_DEC_FATAL_ERROR, nr, decimal_value);
157 return (decimal_value);
158}
159
160
161my_decimal *Item::val_decimal_from_int(my_decimal *decimal_value)

Callers

nothing calls this directly

Calls 2

val_realFunction · 0.85
double2my_decimalFunction · 0.85

Tested by

no test coverage detected