| 1916 | */ |
| 1917 | |
| 1918 | char *str_to_hex(char *to, const char *from, uint len) |
| 1919 | { |
| 1920 | if (len) |
| 1921 | { |
| 1922 | *to++= '0'; |
| 1923 | *to++= 'x'; |
| 1924 | to= octet2hex(to, from, len); |
| 1925 | } |
| 1926 | else |
| 1927 | to= strmov(to, "\"\""); |
| 1928 | return to; // pointer to end 0 of 'to' |
| 1929 | } |
| 1930 | |
| 1931 | |
| 1932 | #ifndef MYSQL_CLIENT |
no test coverage detected