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

Method val_decimal

sql/item_strfunc.cc:99–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98
99my_decimal *Item_str_func::val_decimal(my_decimal *decimal_value)
100{
101 DBUG_ASSERT(fixed == 1);
102 char buff[64];
103 String *res, tmp(buff,sizeof(buff), &my_charset_bin);
104 res= val_str(&tmp);
105 if (!res)
106 return 0;
107 (void)str2my_decimal(E_DEC_FATAL_ERROR, (char*) res->ptr(),
108 res->length(), res->charset(), decimal_value);
109 return decimal_value;
110}
111
112
113double Item_str_func::val_real()

Callers 1

val_str_asciiMethod · 0.45

Calls 5

val_strFunction · 0.85
str2my_decimalFunction · 0.70
ptrMethod · 0.45
lengthMethod · 0.45
charsetMethod · 0.45

Tested by

no test coverage detected