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

Function make_time

sql/sql_time.cc:1032–1038  ·  view source on GitHub ↗

Convert TIME value to String. @param format Format (unused, see comments above) @param l_time TIME value @param OUT str String to conver to @param dec Number of fractional digits. */

Source from the content-addressed store, hash-verified

1030 @param dec Number of fractional digits.
1031*/
1032void make_time(const DATE_TIME_FORMAT *format __attribute__((unused)),
1033 const MYSQL_TIME *l_time, String *str, uint dec)
1034{
1035 uint length= (uint) my_time_to_str(l_time, (char*) str->ptr(), dec);
1036 str->length(length);
1037 str->set_charset(&my_charset_numeric);
1038}
1039
1040
1041/**

Callers

nothing calls this directly

Calls 4

my_time_to_strFunction · 0.85
ptrMethod · 0.45
lengthMethod · 0.45
set_charsetMethod · 0.45

Tested by

no test coverage detected