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

Function make_datetime

sql/sql_time.cc:1063–1069  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1061 @param dec Number of fractional digits.
1062*/
1063void make_datetime(const DATE_TIME_FORMAT *format __attribute__((unused)),
1064 const MYSQL_TIME *l_time, String *str, uint dec)
1065{
1066 uint length= (uint) my_datetime_to_str(l_time, (char*) str->ptr(), dec);
1067 str->length(length);
1068 str->set_charset(&my_charset_numeric);
1069}
1070
1071
1072/**

Callers

nothing calls this directly

Calls 4

my_datetime_to_strFunction · 0.85
ptrMethod · 0.45
lengthMethod · 0.45
set_charsetMethod · 0.45

Tested by

no test coverage detected