| 111 | |
| 112 | |
| 113 | double 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 | |
| 125 | longlong Item_str_func::val_int() |