mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
MDEV-18352 Add a regression test for VARCHAR enlarging
Add a simplest regression test. Specifically, I want to be sure that SYS_COLUMNS.LEN is increased. Closes #1123
This commit is contained in:
parent
fab531a150
commit
d97db40a9f
2 changed files with 17 additions and 0 deletions
9
mysql-test/suite/innodb/r/instant_varchar_enlarge.result
Normal file
9
mysql-test/suite/innodb/r/instant_varchar_enlarge.result
Normal file
|
@ -0,0 +1,9 @@
|
|||
create table t (a varchar(100)) engine=innodb;
|
||||
select name, pos, mtype, prtype, len from information_schema.innodb_sys_columns where name='a';
|
||||
name pos mtype prtype len
|
||||
a 0 1 524303 100
|
||||
alter table t modify a varchar(110), algorithm=inplace;
|
||||
select name, pos, mtype, prtype, len from information_schema.innodb_sys_columns where name='a';
|
||||
name pos mtype prtype len
|
||||
a 0 1 524303 110
|
||||
drop table t;
|
8
mysql-test/suite/innodb/t/instant_varchar_enlarge.test
Normal file
8
mysql-test/suite/innodb/t/instant_varchar_enlarge.test
Normal file
|
@ -0,0 +1,8 @@
|
|||
--source include/have_innodb.inc
|
||||
|
||||
# LEN must increase here
|
||||
create table t (a varchar(100)) engine=innodb;
|
||||
select name, pos, mtype, prtype, len from information_schema.innodb_sys_columns where name='a';
|
||||
alter table t modify a varchar(110), algorithm=inplace;
|
||||
select name, pos, mtype, prtype, len from information_schema.innodb_sys_columns where name='a';
|
||||
drop table t;
|
Loading…
Reference in a new issue