-
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-23345 Assertion not_redundant() == old.not_redundant()
In commit fd9ca2a (MDEV-23295) we added a debug assertion, which caught a similar bug. prepare_inplace_alter_table_dict(): If we had promised that ALGORITHM=INPLACE or ALGORITHM=NOCOPY is supported, we must preserve the ROW_FORMAT.
- Loading branch information
Showing
5 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
11 changes: 10 additions & 1 deletion
11
mysql-test/suite/innodb/r/default_row_format_alter,compact.rdiff
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 |
---|---|---|
@@ -1,10 +1,19 @@ | ||
--- default_row_format_alter.result | ||
+++ default_row_format_alter,compact.reject | ||
@@ -91,6 +91,6 @@ | ||
@@ -91,7 +91,7 @@ | ||
ALTER TABLE t1 ADD b INT; | ||
SELECT ROW_FORMAT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1'; | ||
ROW_FORMAT | ||
-Dynamic | ||
+Compact | ||
DROP TABLE t1; | ||
# | ||
# MDEV-23345 Assertion not_redundant() == old.not_redundant() failed | ||
@@ -102,6 +102,6 @@ | ||
ALTER TABLE t1 DROP b; | ||
SELECT ROW_FORMAT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1'; | ||
ROW_FORMAT | ||
-Dynamic | ||
+Compact | ||
DROP TABLE t1; | ||
SET GLOBAL innodb_default_row_format = @row_format; |
13 changes: 11 additions & 2 deletions
13
mysql-test/suite/innodb/r/default_row_format_alter,redundant.rdiff
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 |
---|---|---|
@@ -1,10 +1,19 @@ | ||
--- default_row_format_alter.result | ||
+++ default_row_format_alter,compact.reject | ||
@@ -91,6 +91,6 @@ | ||
+++ default_row_format_alter,redundant.reject | ||
@@ -91,7 +91,7 @@ | ||
ALTER TABLE t1 ADD b INT; | ||
SELECT ROW_FORMAT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1'; | ||
ROW_FORMAT | ||
-Dynamic | ||
+Redundant | ||
DROP TABLE t1; | ||
# | ||
# MDEV-23345 Assertion not_redundant() == old.not_redundant() failed | ||
@@ -102,6 +102,6 @@ | ||
ALTER TABLE t1 DROP b; | ||
SELECT ROW_FORMAT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1'; | ||
ROW_FORMAT | ||
-Dynamic | ||
+Redundant | ||
DROP TABLE t1; | ||
SET GLOBAL innodb_default_row_format = @row_format; |
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
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
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