| 849 | |
| 850 | |
| 851 | bool Protocol_text::store_decimal(const my_decimal *d) |
| 852 | { |
| 853 | #ifndef DBUG_OFF |
| 854 | DBUG_ASSERT(field_types == 0 || |
| 855 | field_types[field_pos] == MYSQL_TYPE_NEWDECIMAL); |
| 856 | field_pos++; |
| 857 | #endif |
| 858 | char buff[DECIMAL_MAX_STR_LENGTH + 1]; |
| 859 | String str(buff, sizeof(buff), &my_charset_bin); |
| 860 | (void) my_decimal2string(E_DEC_FATAL_ERROR, d, 0, 0, 0, &str); |
| 861 | return net_store_data((uchar*) str.ptr(), str.length()); |
| 862 | } |
| 863 | |
| 864 | |
| 865 | bool Protocol_text::store(float from, uint32 decimals, String *buffer) |
nothing calls this directly
no test coverage detected