1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Check that default() do not see invisible field.

This commit is contained in:
Oleksandr Byelkin
2018-11-20 17:31:07 +01:00
parent 02b70702d9
commit d07a6e33dd
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,8 @@ select a , invisible from t1;
--error ER_BAD_FIELD_ERROR
insert into t1(a, invisible) values(99,99);
--error ER_BAD_FIELD_ERROR
select default(invisible) from t1;
--error ER_BAD_FIELD_ERROR
insert into t1(invisible) values(99);
insert into t_tmp select a, invisible from t1;
--error ER_WRONG_VALUE_COUNT_ON_ROW