| 737 | */ |
| 738 | |
| 739 | bool Protocol::store_string_aux(const char *from, size_t length, |
| 740 | const CHARSET_INFO *fromcs, |
| 741 | const CHARSET_INFO *tocs) |
| 742 | { |
| 743 | /* 'tocs' is set 0 when client issues SET character_set_results=NULL */ |
| 744 | if (tocs && !my_charset_same(fromcs, tocs) && |
| 745 | fromcs != &my_charset_bin && |
| 746 | tocs != &my_charset_bin) |
| 747 | { |
| 748 | /* Store with conversion */ |
| 749 | return net_store_data((uchar*) from, length, fromcs, tocs); |
| 750 | } |
| 751 | /* Store without conversion */ |
| 752 | return net_store_data((uchar*) from, length); |
| 753 | } |
| 754 | |
| 755 | |
| 756 | bool Protocol_text::store(const char *from, size_t length, |
nothing calls this directly
no test coverage detected