Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7293ce0e
Commit
7293ce0e
authored
Feb 04, 2019
by
Eugene Kosov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-18470 improve alter_varchar_change.test
Make ALGORITHM=INSTANT explicit.
parent
ab2458c6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
mysql-test/suite/innodb/r/alter_varchar_change.result
mysql-test/suite/innodb/r/alter_varchar_change.result
+9
-9
mysql-test/suite/innodb/t/alter_varchar_change.test
mysql-test/suite/innodb/t/alter_varchar_change.test
+9
-9
No files found.
mysql-test/suite/innodb/r/alter_varchar_change.result
View file @
7293ce0e
...
...
@@ -15,7 +15,7 @@ SET @idx1_id = 0;
CREATE TABLE t1(f1 INT NOT NULL,
f2 VARCHAR(100) PRIMARY KEY)ENGINE=InnoDB;
CALL get_table_id("test/t1", @tbl_id);
ALTER TABLE t1 MODIFY f2 VARCHAR(200);
ALTER TABLE t1 MODIFY f2 VARCHAR(200)
, ALGORITHM=INSTANT
;
CALL get_table_id("test/t1", @tbl1_id);
SELECT @tbl1_id = @tbl_id;
@tbl1_id = @tbl_id
...
...
@@ -32,7 +32,7 @@ CREATE TABLE t1(f1 INT NOT NULL,
f2 VARCHAR(100),
INDEX idx(f2))ENGINE=InnoDB;
CALL get_table_id("test/t1", @tbl_id);
ALTER TABLE t1 MODIFY f2 VARCHAR(200);
ALTER TABLE t1 MODIFY f2 VARCHAR(200)
, ALGORITHM=INSTANT
;
CALL get_table_id("test/t1", @tbl1_id);
SELECT @tbl1_id = @tbl_id;
@tbl1_id = @tbl_id
...
...
@@ -49,7 +49,7 @@ CREATE TABLE t1(f1 INT NOT NULL, f2 VARCHAR(100), f3 VARCHAR(100),
INDEX idx(f2, f3), index idx1(f3, f2))ENGINE=InnoDB;
CALL get_table_id("test/t1", @tbl_id);
CALL get_index_id(@tbl_id, "idx", @idx_id);
ALTER TABLE t1 MODIFY f2 VARCHAR(200), MODIFY f3 VARCHAR(150);
ALTER TABLE t1 MODIFY f2 VARCHAR(200), MODIFY f3 VARCHAR(150)
, ALGORITHM=INSTANT
;
CALL get_table_id("test/t1", @tbl1_id);
CALL get_index_id(@tbl1_id, "idx", @idx1_id);
SELECT @tbl1_id = @tbl_id;
...
...
@@ -72,7 +72,7 @@ CREATE TABLE t1(f1 INT NOT NULL, f2 VARCHAR(100),
INDEX idx(f2(40)))ENGINE=InnoDB;
CALL get_table_id("test/t1", @tbl_id);
CALL get_index_id(@tbl_id, "idx", @idx_id);
ALTER TABLE t1 MODIFY f2 VARCHAR(200);
ALTER TABLE t1 MODIFY f2 VARCHAR(200)
, ALGORITHM=INSTANT
;
CALL get_table_id("test/t1", @tbl1_id);
CALL get_index_id(@tbl1_id, "idx", @idx1_id);
SELECT @tbl1_id = @tbl_id;
...
...
@@ -93,7 +93,7 @@ CREATE TABLE t1(f1 INT NOT NULL,
f2 VARCHAR(100), FULLTEXT idx(f2))ENGINE=InnoDB;
CALL get_table_id("test/t1", @tbl_id);
CALL get_index_id(@tbl_id, "idx", @idx_id);
ALTER TABLE t1 MODIFY f2 VARCHAR(200);
ALTER TABLE t1 MODIFY f2 VARCHAR(200)
, ALGORITHM=INSTANT
;
CALL get_table_id("test/t1", @tbl1_id);
CALL get_index_id(@tbl1_id, "idx", @idx1_id);
SELECT @tbl1_id = @tbl_id;
...
...
@@ -117,7 +117,7 @@ INDEX idx(f3))ENGINE=InnoDB;
INSERT INTO t1(f1, f2) VALUES(1, repeat('a', 40));
CALL get_table_id("test/t1", @tbl_id);
CALL get_index_id(@tbl_id, "idx", @idx_id);
ALTER TABLE t1 MODIFY f2 VARCHAR(100);
ALTER TABLE t1 MODIFY f2 VARCHAR(100)
, ALGORITHM=INSTANT
;
CALL get_table_id("test/t1", @tbl1_id);
CALL get_index_id(@tbl1_id, "idx", @idx1_id);
SELECT @tbl1_id = @tbl_id;
...
...
@@ -163,7 +163,7 @@ f2 VARCHAR(100),
INDEX idx(f2(10)))ENGINE=InnoDB;
CALL get_table_id("test/t1", @tbl_id);
CALL get_index_id(@tbl_id, "idx", @idx_id);
ALTER TABLE t1 MODIFY f2 VARCHAR(200), DROP INDEX idx, ADD INDEX idx(f2(10));
ALTER TABLE t1 MODIFY f2 VARCHAR(200), DROP INDEX idx, ADD INDEX idx(f2(10))
, ALGORITHM=INSTANT
;
CALL get_table_id("test/t1", @tbl1_id);
CALL get_index_id(@tbl1_id, "idx", @idx1_id);
SELECT @tbl1_id = @tbl_id;
...
...
@@ -251,7 +251,7 @@ CREATE TABLE t1(f1 INT NOT NULL,
f2 VARCHAR(100),
INDEX idx(f2))ENGINE=InnoDB;
CALL get_table_id("test/t1", @tbl_id);
ALTER TABLE t1 MODIFY f2 VARCHAR(200), ADD COLUMN f3 INT;
ALTER TABLE t1 MODIFY f2 VARCHAR(200), ADD COLUMN f3 INT
, ALGORITHM=INSTANT
;
CALL get_table_id("test/t1", @tbl1_id);
SELECT @tbl1_id = @tbl_id;
@tbl1_id = @tbl_id
...
...
@@ -267,7 +267,7 @@ t1 CREATE TABLE `t1` (
DROP TABLE t1;
CREATE TABLE t1(f1 INT NOT NULL, f2 VARCHAR(100) PRIMARY KEY)ENGINE=InnoDB;
CALL get_table_id("test/t1", @tbl_id);
ALTER TABLE t1 MODIFY f2 VARCHAR(200), ADD COLUMN f3 INT;
ALTER TABLE t1 MODIFY f2 VARCHAR(200), ADD COLUMN f3 INT
, ALGORITHM=INSTANT
;
CALL get_table_id("test/t1", @tbl1_id);
SELECT @tbl1_id = @tbl_id;
@tbl1_id = @tbl_id
...
...
mysql-test/suite/innodb/t/alter_varchar_change.test
View file @
7293ce0e
...
...
@@ -26,7 +26,7 @@ CREATE TABLE t1(f1 INT NOT NULL,
f2
VARCHAR
(
100
)
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
CALL
get_table_id
(
"test/t1"
,
@
tbl_id
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
)
,
ALGORITHM
=
INSTANT
;
CALL
get_table_id
(
"test/t1"
,
@
tbl1_id
);
SELECT
@
tbl1_id
=
@
tbl_id
;
...
...
@@ -39,7 +39,7 @@ CREATE TABLE t1(f1 INT NOT NULL,
INDEX
idx
(
f2
))
ENGINE
=
InnoDB
;
CALL
get_table_id
(
"test/t1"
,
@
tbl_id
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
)
,
ALGORITHM
=
INSTANT
;
CALL
get_table_id
(
"test/t1"
,
@
tbl1_id
);
SELECT
@
tbl1_id
=
@
tbl_id
;
...
...
@@ -51,7 +51,7 @@ CREATE TABLE t1(f1 INT NOT NULL, f2 VARCHAR(100), f3 VARCHAR(100),
CALL
get_table_id
(
"test/t1"
,
@
tbl_id
);
CALL
get_index_id
(
@
tbl_id
,
"idx"
,
@
idx_id
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
),
MODIFY
f3
VARCHAR
(
150
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
),
MODIFY
f3
VARCHAR
(
150
)
,
ALGORITHM
=
INSTANT
;
CALL
get_table_id
(
"test/t1"
,
@
tbl1_id
);
CALL
get_index_id
(
@
tbl1_id
,
"idx"
,
@
idx1_id
);
...
...
@@ -65,7 +65,7 @@ CREATE TABLE t1(f1 INT NOT NULL, f2 VARCHAR(100),
CALL
get_table_id
(
"test/t1"
,
@
tbl_id
);
CALL
get_index_id
(
@
tbl_id
,
"idx"
,
@
idx_id
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
)
,
ALGORITHM
=
INSTANT
;
CALL
get_table_id
(
"test/t1"
,
@
tbl1_id
);
CALL
get_index_id
(
@
tbl1_id
,
"idx"
,
@
idx1_id
);
...
...
@@ -80,7 +80,7 @@ CREATE TABLE t1(f1 INT NOT NULL,
CALL
get_table_id
(
"test/t1"
,
@
tbl_id
);
CALL
get_index_id
(
@
tbl_id
,
"idx"
,
@
idx_id
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
)
,
ALGORITHM
=
INSTANT
;
CALL
get_table_id
(
"test/t1"
,
@
tbl1_id
);
CALL
get_index_id
(
@
tbl1_id
,
"idx"
,
@
idx1_id
);
...
...
@@ -98,7 +98,7 @@ INSERT INTO t1(f1, f2) VALUES(1, repeat('a', 40));
CALL
get_table_id
(
"test/t1"
,
@
tbl_id
);
CALL
get_index_id
(
@
tbl_id
,
"idx"
,
@
idx_id
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
100
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
100
)
,
ALGORITHM
=
INSTANT
;
CALL
get_table_id
(
"test/t1"
,
@
tbl1_id
);
CALL
get_index_id
(
@
tbl1_id
,
"idx"
,
@
idx1_id
);
...
...
@@ -129,7 +129,7 @@ CREATE TABLE t1(f1 INT NOT NULL,
CALL
get_table_id
(
"test/t1"
,
@
tbl_id
);
CALL
get_index_id
(
@
tbl_id
,
"idx"
,
@
idx_id
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
),
DROP
INDEX
idx
,
ADD
INDEX
idx
(
f2
(
10
));
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
),
DROP
INDEX
idx
,
ADD
INDEX
idx
(
f2
(
10
))
,
ALGORITHM
=
INSTANT
;
CALL
get_table_id
(
"test/t1"
,
@
tbl1_id
);
CALL
get_index_id
(
@
tbl1_id
,
"idx"
,
@
idx1_id
);
...
...
@@ -192,7 +192,7 @@ CREATE TABLE t1(f1 INT NOT NULL,
INDEX
idx
(
f2
))
ENGINE
=
InnoDB
;
CALL
get_table_id
(
"test/t1"
,
@
tbl_id
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
),
ADD
COLUMN
f3
INT
;
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
),
ADD
COLUMN
f3
INT
,
ALGORITHM
=
INSTANT
;
CALL
get_table_id
(
"test/t1"
,
@
tbl1_id
);
SELECT
@
tbl1_id
=
@
tbl_id
;
...
...
@@ -202,7 +202,7 @@ DROP TABLE t1;
CREATE
TABLE
t1
(
f1
INT
NOT
NULL
,
f2
VARCHAR
(
100
)
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
CALL
get_table_id
(
"test/t1"
,
@
tbl_id
);
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
),
ADD
COLUMN
f3
INT
;
ALTER
TABLE
t1
MODIFY
f2
VARCHAR
(
200
),
ADD
COLUMN
f3
INT
,
ALGORITHM
=
INSTANT
;
CALL
get_table_id
(
"test/t1"
,
@
tbl1_id
);
SELECT
@
tbl1_id
=
@
tbl_id
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment