1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-07 06:01:31 +03:00
Files
mariadb/mysql-test/suite/vcol/t/upgrade.test
Sergei Golubchik 47687eef41 MDEV-12936 upgrade to 10.2.6 failed upon tables with virtual columns
when opening 10.1- table that has virtual columns:

1. don't error out if it has vcols over autoinc columns.
   just issue a warning.
2. set vcol type properly
3. in innodb: use table->s->stored_fields instead of table->s->fields,
   because that's what was stored in innodb data dictionary
2017-07-05 17:15:58 +02:00

14 lines
500 B
Plaintext

#
# MDEV-12936 upgrade to 10.2.6 failed upon tables with virtual columns
#
let $datadir=`select @@datadir`;
copy_file std_data/vcol_autoinc.frm $datadir/test/vcol_autoinc.frm;
copy_file std_data/vcol_autoinc.MYD $datadir/test/vcol_autoinc.MYD;
copy_file std_data/vcol_autoinc.MYI $datadir/test/vcol_autoinc.MYI;
check table vcol_autoinc for upgrade;
show create table vcol_autoinc;
select * from vcol_autoinc;
insert vcol_autoinc (pk) values (1);
select * from vcol_autoinc;
drop table vcol_autoinc;