1--source include/have_tokudb.inc 2SET DEFAULT_STORAGE_ENGINE='tokudb'; 3 4--disable_warnings 5DROP TABLE IF EXISTS foo; 6--enable_warnings 7 8set session tokudb_disable_slow_alter=ON; 9 10--error ER_UNSUPPORTED_ENGINE_FOR_VIRTUAL_COLUMNS 11create table foo (a int, b int, c int, d int as (a mod 10) virtual, key(a))engine=TokuDB; 12 13 14 15create table foo (a int, b int, c int)engine=TokuDB; 16--error ER_UNSUPPORTED_ENGINE_FOR_VIRTUAL_COLUMNS 17alter table foo add column d int as (a mod 10) virtual; 18--error ER_UNSUPPORTED_ENGINE_FOR_VIRTUAL_COLUMNS 19alter table foo add column d int as (a mod 10) persistent; 20 21 22drop table foo; 23