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

Method val_decimal

sql/item_func.h:1056–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1054 return (longlong) rint(Item_func_udf_float::val_real());
1055 }
1056 my_decimal *val_decimal(my_decimal *dec_buf)
1057 {
1058 double res=val_real();
1059 if (null_value)
1060 return NULL;
1061 double2my_decimal(E_DEC_FATAL_ERROR, res, dec_buf);
1062 return dec_buf;
1063 }
1064 double val_real();
1065 String *val_str(String *str);
1066};

Callers

nothing calls this directly

Calls 2

val_realFunction · 0.85
double2my_decimalFunction · 0.85

Tested by

no test coverage detected