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

Method store_time

sql/protocol.cc:919–929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

917
918
919bool Protocol_text::store_time(MYSQL_TIME *tm, uint decimals)
920{
921#ifndef DBUG_OFF
922 DBUG_ASSERT(field_types == 0 ||
923 field_types[field_pos] == MYSQL_TYPE_TIME);
924 field_pos++;
925#endif
926 char buff[MAX_DATE_STRING_REP_LENGTH];
927 uint length= my_time_to_str(tm, buff, decimals);
928 return net_store_data((uchar*) buff, length);
929}
930
931/****************************************************************************
932 Functions to handle the binary protocol used with prepared statements

Callers

nothing calls this directly

Calls 3

my_time_to_strFunction · 0.85
net_store_dataFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected