diff options
Diffstat (limited to 'mysql-test/main/invisible_field.test')
-rw-r--r-- | mysql-test/main/invisible_field.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/main/invisible_field.test b/mysql-test/main/invisible_field.test index f3f8fc8f19c..7fd22704fcb 100644 --- a/mysql-test/main/invisible_field.test +++ b/mysql-test/main/invisible_field.test @@ -281,3 +281,16 @@ insert delayed into t1 values (1); --disable_prepare_warnings # cleanup drop table t1; + +--echo # +--echo # MDEV-25891 Computed default for INVISIBLE column is ignored in INSERT +--echo # +create table t1( + a int, + x int default (a), + y int default (a) invisible, + z int default (33) invisible); +insert into t1 values (1, default); +insert into t1 (a) values (2); +select a, x, y, z from t1; +drop table t1; |