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

Method val_string_from_decimal

sql/item.cc:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138
139
140String *Item::val_string_from_decimal(String *str)
141{
142 my_decimal dec_buf, *dec= val_decimal(&dec_buf);
143 if (null_value)
144 return 0;
145 my_decimal_round(E_DEC_FATAL_ERROR, dec, decimals, FALSE, &dec_buf);
146 my_decimal2string(E_DEC_FATAL_ERROR, &dec_buf, 0, 0, 0, str);
147 return str;
148}
149
150
151my_decimal *Item::val_decimal_from_real(my_decimal *decimal_value)

Callers

nothing calls this directly

Calls 3

val_decimalFunction · 0.85
my_decimal_roundFunction · 0.85
my_decimal2stringFunction · 0.85

Tested by

no test coverage detected