#57 add a test for tinytext -> text expansion

This commit is contained in:
Rich Prohaska 2013-07-29 16:51:49 -04:00
parent 29989705c3
commit 76b13e8a48
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,11 @@
drop table if exists t;
create table t (u tinytext, v text);
insert into t values ('hi', 'there');
select * from t;
u v
hi there
alter table t change column u u text;
select * from t;
u v
hi there
drop table t;

View file

@ -0,0 +1,14 @@
# this test verifies that column expansion of a tinytext to text column retains the correct data
--source include/have_tokudb.inc
--disable_warnings
drop table if exists t;
--enable_warnings
create table t (u tinytext, v text);
insert into t values ('hi', 'there');
select * from t;
alter table t change column u u text;
select * from t;
# Final cleanup.
drop table t;