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

Method store_short

sql/protocol.cc:806–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804
805
806bool Protocol_text::store_short(longlong from)
807{
808#ifndef DBUG_OFF
809 DBUG_ASSERT(field_types == 0 ||
810 field_types[field_pos] == MYSQL_TYPE_YEAR ||
811 field_types[field_pos] == MYSQL_TYPE_SHORT);
812 field_pos++;
813#endif
814 char buff[20];
815 return net_store_data((uchar*) buff,
816 (size_t) (int10_to_str((int) from, buff, -10) -
817 buff));
818}
819
820
821bool Protocol_text::store_long(longlong from)

Callers

nothing calls this directly

Calls 3

net_store_dataFunction · 0.85
int10_to_strFunction · 0.85
prep_appendMethod · 0.80

Tested by

no test coverage detected