MCPcopy Create free account
hub / github.com/MariaDB/server / make_truncated_value_warning

Function make_truncated_value_warning

sql/sql_time.cc:593–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591
592
593void 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 */

Callers 4

check_date_with_warnFunction · 0.85
extract_date_timeFunction · 0.85
extract_oracle_date_timeFunction · 0.85
set_timeMethod · 0.85

Calls 2

ptrMethod · 0.45

Tested by

no test coverage detected