mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
#57 add a test for tinytext -> text expansion
This commit is contained in:
parent
29989705c3
commit
76b13e8a48
2 changed files with 25 additions and 0 deletions
11
mysql-test/suite/tokudb.bugs/r/expand_tinytext_text.result
Normal file
11
mysql-test/suite/tokudb.bugs/r/expand_tinytext_text.result
Normal 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;
|
14
mysql-test/suite/tokudb.bugs/t/expand_tinytext_text.test
Normal file
14
mysql-test/suite/tokudb.bugs/t/expand_tinytext_text.test
Normal 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;
|
Loading…
Add table
Reference in a new issue