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

Method val_real

sql/item_strfunc.cc:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112
113double Item_str_func::val_real()
114{
115 DBUG_ASSERT(fixed == 1);
116 int err_not_used;
117 char *end_not_used, buff[64];
118 String *res, tmp(buff,sizeof(buff), &my_charset_bin);
119 res= val_str(&tmp);
120 return res ? my_strntod(res->charset(), (char*) res->ptr(), res->length(),
121 &end_not_used, &err_not_used) : 0.0;
122}
123
124
125longlong Item_str_func::val_int()

Callers 1

val_str_asciiMethod · 0.45

Calls 5

val_strFunction · 0.85
charsetMethod · 0.45
ptrMethod · 0.45
lengthMethod · 0.45
val_intMethod · 0.45

Tested by

no test coverage detected