| 1543 | */ |
| 1544 | |
| 1545 | void Item_param::set_decimal(const char *str, ulong length) |
| 1546 | { |
| 1547 | char *end; |
| 1548 | DBUG_ENTER("Item_param::set_decimal"); |
| 1549 | |
| 1550 | end= (char*) str+length; |
| 1551 | str2my_decimal(E_DEC_FATAL_ERROR, str, &decimal_value, &end); |
| 1552 | state= DECIMAL_VALUE; |
| 1553 | decimals= decimal_value.frac; |
| 1554 | max_length= |
| 1555 | my_decimal_precision_to_length_no_truncation(decimal_value.precision(), |
| 1556 | decimals, unsigned_flag); |
| 1557 | maybe_null= 0; |
| 1558 | DBUG_VOID_RETURN; |
| 1559 | } |
| 1560 | |
| 1561 | void Item_param::set_decimal(const my_decimal *dv) |
| 1562 | { |
nothing calls this directly
no test coverage detected