| 1475 | |
| 1476 | |
| 1477 | bool Protocol::store_warning(const char *from, size_t length) |
| 1478 | { |
| 1479 | BinaryStringBuffer<MYSQL_ERRMSG_SIZE> tmp; |
| 1480 | CHARSET_INFO *cs= thd->variables.character_set_results; |
| 1481 | if (!cs || cs == &my_charset_bin) |
| 1482 | cs= system_charset_info; |
| 1483 | if (tmp.copy_printable_hhhh(cs, system_charset_info, from, length)) |
| 1484 | return net_store_data((const uchar*)"", 0); |
| 1485 | return net_store_data((const uchar *) tmp.ptr(), tmp.length()); |
| 1486 | } |
| 1487 | |
| 1488 | |
| 1489 | bool Protocol_text::store_str(const char *from, size_t length, |
no test coverage detected