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

Method store_string_aux

sql/protocol.cc:739–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737*/
738
739bool 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
756bool Protocol_text::store(const char *from, size_t length,

Callers

nothing calls this directly

Calls 2

my_charset_sameFunction · 0.85
net_store_dataFunction · 0.85

Tested by

no test coverage detected