MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / str_to_hex

Function str_to_hex

sql/item.cc:1918–1929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1916*/
1917
1918char *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

Callers 1

append_query_stringFunction · 0.85

Calls 2

octet2hexFunction · 0.85
strmovFunction · 0.85

Tested by

no test coverage detected