MCPcopy Create free account
hub / github.com/MariaDB/server / store_warning

Method store_warning

sql/protocol.cc:1477–1486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1475
1476
1477bool 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
1489bool Protocol_text::store_str(const char *from, size_t length,

Callers 1

mysqld_show_warningsFunction · 0.45

Calls 4

net_store_dataFunction · 0.85
copy_printable_hhhhMethod · 0.80
ptrMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected