Convert TIME/DATE/DATETIME value to String. @param l_time DATE value @param OUT str String to conver to @param dec Number of fractional digits. */
| 1076 | @param dec Number of fractional digits. |
| 1077 | */ |
| 1078 | bool my_TIME_to_str(const MYSQL_TIME *ltime, String *str, uint dec) |
| 1079 | { |
| 1080 | if (str->alloc(MAX_DATE_STRING_REP_LENGTH)) |
| 1081 | return true; |
| 1082 | str->set_charset(&my_charset_numeric); |
| 1083 | str->length(my_TIME_to_str(ltime, const_cast<char*>(str->ptr()), dec)); |
| 1084 | return false; |
| 1085 | } |
| 1086 | |
| 1087 | |
| 1088 | void make_truncated_value_warning(THD *thd, |
no test coverage detected