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

Method val_string_from_real

sql/item.cc:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119
120String *Item::val_string_from_real(String *str)
121{
122 double nr= val_real();
123 if (null_value)
124 return 0; /* purecov: inspected */
125 str->set_real(nr,decimals, &my_charset_bin);
126 return str;
127}
128
129
130String *Item::val_string_from_int(String *str)

Callers

nothing calls this directly

Calls 2

val_realFunction · 0.85
set_realMethod · 0.80

Tested by

no test coverage detected