| 1159 | |
| 1160 | |
| 1161 | Item_decimal::Item_decimal(const char *str_arg, uint length, |
| 1162 | const CHARSET_INFO *charset) |
| 1163 | { |
| 1164 | str2my_decimal(E_DEC_FATAL_ERROR, str_arg, length, charset, &decimal_value); |
| 1165 | item_name.set(str_arg); |
| 1166 | decimals= (uint8) decimal_value.frac; |
| 1167 | fixed= 1; |
| 1168 | max_length= my_decimal_precision_to_length_no_truncation(decimal_value.intg + |
| 1169 | decimals, |
| 1170 | decimals, |
| 1171 | unsigned_flag); |
| 1172 | } |
| 1173 | |
| 1174 | Item_decimal::Item_decimal(longlong val, bool unsig) |
| 1175 | { |
nothing calls this directly
no test coverage detected