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

Function make_date

sql/sql_time.cc:1047–1053  ·  view source on GitHub ↗

Convert DATE value to String. @param format Format (unused, see comments above) @param l_time DATE value @param OUT str String to conver to */

Source from the content-addressed store, hash-verified

1045 @param OUT str String to conver to
1046*/
1047void make_date(const DATE_TIME_FORMAT *format __attribute__((unused)),
1048 const MYSQL_TIME *l_time, String *str)
1049{
1050 uint length= (uint) my_date_to_str(l_time, (char*) str->ptr());
1051 str->length(length);
1052 str->set_charset(&my_charset_numeric);
1053}
1054
1055
1056/**

Callers

nothing calls this directly

Calls 4

my_date_to_strFunction · 0.85
ptrMethod · 0.45
lengthMethod · 0.45
set_charsetMethod · 0.45

Tested by

no test coverage detected