mirror of
https://github.com/MariaDB/server.git
synced 2026-04-23 08:45:33 +02:00
MDEV-14576 Include full name of object in message about incorrect value for column.
The error message modified.
Then the TABLE_SHARE::error_table_name() implementation taken from 10.3,
to be used as a name of the table in this message.
This commit is contained in:
parent
0a2edddbf4
commit
c4ab352b67
100 changed files with 1494 additions and 1422 deletions
|
|
@ -44,13 +44,13 @@ bool str_to_datetime_with_warn(CHARSET_INFO *cs, const char *str,
|
|||
ulonglong flags);
|
||||
bool double_to_datetime_with_warn(double value, MYSQL_TIME *ltime,
|
||||
ulonglong fuzzydate,
|
||||
const char *name);
|
||||
const TABLE_SHARE *s, const char *name);
|
||||
bool decimal_to_datetime_with_warn(const my_decimal *value, MYSQL_TIME *ltime,
|
||||
ulonglong fuzzydate,
|
||||
const char *name);
|
||||
const TABLE_SHARE *s, const char *name);
|
||||
bool int_to_datetime_with_warn(bool neg, ulonglong value, MYSQL_TIME *ltime,
|
||||
ulonglong fuzzydate,
|
||||
const char *name);
|
||||
const TABLE_SHARE *s, const char *name);
|
||||
|
||||
bool time_to_datetime(THD *thd, const MYSQL_TIME *tm, MYSQL_TIME *dt);
|
||||
bool time_to_datetime_with_warn(THD *thd,
|
||||
|
|
@ -120,15 +120,15 @@ void make_truncated_value_warning(THD *thd,
|
|||
Sql_condition::enum_warning_level level,
|
||||
const ErrConv *str_val,
|
||||
timestamp_type time_type,
|
||||
const char *field_name);
|
||||
const TABLE_SHARE *s, 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 char *field_name)
|
||||
const TABLE_SHARE *s, const char *field_name)
|
||||
{
|
||||
const ErrConvString str(str_val, str_length, &my_charset_bin);
|
||||
make_truncated_value_warning(thd, level, &str, time_type, field_name);
|
||||
make_truncated_value_warning(thd, level, &str, time_type, s, field_name);
|
||||
}
|
||||
|
||||
extern DATE_TIME_FORMAT *date_time_format_make(timestamp_type format_type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue