Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
MDEV-14641 Incompatible key or row definition between the MariaDB .fr…
…m file and the information in the storage engine make sure that mysql_create_frm_image() and fast_alter_partition_table() use the same code to derive HA_OPTION_PACK_RECORD from create_info->row_type.
- Loading branch information
Showing
5 changed files
with
36 additions
and
8 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,10 @@ | ||
| CREATE TABLE t1 (i INT) ENGINE=MYISAM | ||
| PARTITION BY LIST(i) ( | ||
| PARTITION p0 VALUES IN (1), | ||
| PARTITION p1 VALUES IN (2) | ||
| ); | ||
| ALTER TABLE t1 ROW_FORMAT=COMPRESSED; | ||
| ALTER TABLE t1 DROP PARTITION p1; | ||
| SELECT * FROM t1; | ||
| i | ||
| DROP TABLE t1; |
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,17 @@ | ||
| # | ||
| # MDEV-14641 Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine | ||
| # | ||
|
|
||
| --source include/have_partition.inc | ||
|
|
||
| CREATE TABLE t1 (i INT) ENGINE=MYISAM | ||
| PARTITION BY LIST(i) ( | ||
| PARTITION p0 VALUES IN (1), | ||
| PARTITION p1 VALUES IN (2) | ||
| ); | ||
| ALTER TABLE t1 ROW_FORMAT=COMPRESSED; | ||
| ALTER TABLE t1 DROP PARTITION p1; | ||
| SELECT * FROM t1; | ||
|
|
||
| # Cleanup | ||
| DROP TABLE t1; |
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