2011-05-04 16:16:21 +00:00
|
|
|
# ticket 3486 is a bug where we crash on an update because the buffer we allocate
|
|
|
|
# is not resized
|
2011-05-04 15:47:43 +00:00
|
|
|
|
|
|
|
--source include/have_tokudb.inc
|
2012-10-03 22:35:02 +00:00
|
|
|
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
|
2011-05-04 15:47:43 +00:00
|
|
|
|
|
|
|
--disable_warnings
|
|
|
|
DROP TABLE IF EXISTS foo;
|
|
|
|
--enable_warnings
|
|
|
|
|
|
|
|
set session tokudb_disable_slow_alter=ON;
|
|
|
|
|
|
|
|
create table foo (a blob, clustering key (a(3)))engine=TokuDB;
|
|
|
|
insert into foo values("");
|
2011-05-04 16:16:21 +00:00
|
|
|
# not really necessary to alter table, we could have just udpated a
|
2011-05-04 15:47:43 +00:00
|
|
|
alter table foo add column b blob;
|
|
|
|
update foo set b="bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb";
|
|
|
|
select * from foo;
|
|
|
|
|
|
|
|
drop table foo;
|