mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03: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:
@ -751,12 +751,12 @@ create table t1(f1 int);
|
||||
alter table t1 add column f2 datetime not null, add column f21 date not null;
|
||||
insert into t1 values(1,'2000-01-01','2000-01-01');
|
||||
alter table t1 add column f3 datetime not null;
|
||||
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'f3' at row 1
|
||||
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column `test`.`t1`.`f3` at row 1
|
||||
alter table t1 add column f3 date not null;
|
||||
ERROR 22007: Incorrect date value: '0000-00-00' for column 'f3' at row 1
|
||||
ERROR 22007: Incorrect date value: '0000-00-00' for column `test`.`t1`.`f3` at row 1
|
||||
alter table t1 add column f4 datetime not null default '2002-02-02',
|
||||
add column f41 date not null;
|
||||
ERROR 22007: Incorrect date value: '0000-00-00' for column 'f41' at row 1
|
||||
ERROR 22007: Incorrect date value: '0000-00-00' for column `test`.`t1`.`f41` at row 1
|
||||
alter table t1 add column f4 datetime not null default '2002-02-02',
|
||||
add column f41 date not null default '2002-02-02';
|
||||
select * from t1;
|
||||
|
Reference in New Issue
Block a user