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

Method store_long

sql/protocol.cc:821–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819
820
821bool Protocol_text::store_long(longlong from)
822{
823#ifndef DBUG_OFF
824 DBUG_ASSERT(field_types == 0 ||
825 field_types[field_pos] == MYSQL_TYPE_INT24 ||
826 field_types[field_pos] == MYSQL_TYPE_LONG);
827 field_pos++;
828#endif
829 char buff[20];
830 return net_store_data((uchar*) buff,
831 (size_t) (int10_to_str((long int)from, buff,
832 (from <0)?-10:10)-buff));
833}
834
835
836bool Protocol_text::store_longlong(longlong from, bool unsigned_flag)

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