| 200 | |
| 201 | |
| 202 | bool Binary_string::set_fcvt(double num, uint decimals) |
| 203 | { |
| 204 | // Assert that `decimals` is small enough to fit into FLOATING_POINT_BUFFER |
| 205 | DBUG_ASSERT(decimals < DECIMAL_NOT_SPECIFIED); |
| 206 | if (alloc(FLOATING_POINT_BUFFER)) |
| 207 | return true; |
| 208 | length(my_fcvt(num, decimals, Ptr, NULL)); |
| 209 | return false; |
| 210 | } |
| 211 | |
| 212 | |
| 213 | bool String::set_real_with_type(double num, uint decimals, CHARSET_INFO *cs, |
no test coverage detected