| 591 | |
| 592 | |
| 593 | void make_truncated_value_warning(THD *thd, |
| 594 | Sql_condition::enum_warning_level level, |
| 595 | const ErrConv *sval, |
| 596 | timestamp_type time_type, |
| 597 | const char *db_name, const char *table_name, |
| 598 | const char *field_name) |
| 599 | { |
| 600 | const char *type_str= Temporal::type_name_by_timestamp_type(time_type); |
| 601 | return thd->push_warning_wrong_or_truncated_value |
| 602 | (level, time_type <= MYSQL_TIMESTAMP_ERROR, type_str, sval->ptr(), |
| 603 | db_name, table_name, field_name); |
| 604 | } |
| 605 | |
| 606 | |
| 607 | /* Daynumber from year 0 to 9999-12-31 */ |
no test coverage detected