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

Method store_tiny

sql/protocol.cc:794–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792
793
794bool Protocol_text::store_tiny(longlong from)
795{
796#ifndef DBUG_OFF
797 DBUG_ASSERT(field_types == 0 || field_types[field_pos] == MYSQL_TYPE_TINY);
798 field_pos++;
799#endif
800 char buff[20];
801 return net_store_data((uchar*) buff,
802 (size_t) (int10_to_str((int) from, buff, -10) - buff));
803}
804
805
806bool Protocol_text::store_short(longlong from)

Callers

nothing calls this directly

Calls 3

net_store_dataFunction · 0.85
int10_to_strFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected