mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-18042 Server crashes upon adding a non-null date column under NO_ZERO_DATE with ALGORITHM=INPLACE
accept table_name and db_name instead of table_share in make_truncated_value_warning
This commit is contained in:
@ -120,15 +120,18 @@ void make_truncated_value_warning(THD *thd,
|
||||
Sql_condition::enum_warning_level level,
|
||||
const ErrConv *str_val,
|
||||
timestamp_type time_type,
|
||||
const TABLE_SHARE *s, const char *field_name);
|
||||
const char *db_name, const char *table_name,
|
||||
const char *field_name);
|
||||
|
||||
static inline void make_truncated_value_warning(THD *thd,
|
||||
Sql_condition::enum_warning_level level, const char *str_val,
|
||||
uint str_length, timestamp_type time_type,
|
||||
const TABLE_SHARE *s, const char *field_name)
|
||||
const char *db_name, const char *table_name,
|
||||
const char *field_name)
|
||||
{
|
||||
const ErrConvString str(str_val, str_length, &my_charset_bin);
|
||||
make_truncated_value_warning(thd, level, &str, time_type, s, field_name);
|
||||
make_truncated_value_warning(thd, level, &str, time_type, db_name, table_name,
|
||||
field_name);
|
||||
}
|
||||
|
||||
extern DATE_TIME_FORMAT *date_time_format_make(timestamp_type format_type,
|
||||
|
Reference in New Issue
Block a user