-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |