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

Method store_date

sql/protocol.cc:906–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904
905
906bool Protocol_text::store_date(MYSQL_TIME *tm)
907{
908#ifndef DBUG_OFF
909 DBUG_ASSERT(field_types == 0 ||
910 field_types[field_pos] == MYSQL_TYPE_DATE);
911 field_pos++;
912#endif
913 char buff[MAX_DATE_STRING_REP_LENGTH];
914 size_t length= my_date_to_str(tm, buff);
915 return net_store_data((uchar*) buff, length);
916}
917
918
919bool Protocol_text::store_time(MYSQL_TIME *tm, uint decimals)

Callers

nothing calls this directly

Calls 2

my_date_to_strFunction · 0.85
net_store_dataFunction · 0.85

Tested by

no test coverage detected