diff options
Diffstat (limited to 'sql/field.cc')
-rw-r--r-- | sql/field.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/field.cc b/sql/field.cc index ff158010cb6..f5daab00670 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -11388,7 +11388,8 @@ void Field::set_datetime_warning(Sql_condition::enum_warning_level level, THD *thd= get_thd(); if (thd->really_abort_on_warning() && level >= Sql_condition::WARN_LEVEL_WARN) make_truncated_value_warning(thd, level, str, ts_type, - table->s, field_name.str); + table->s->db.str, table->s->table_name.str, + field_name.str); else set_warning(level, code, cuted_increment); } |