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 Assertion `partition_id == m_extra_cache_part_id' failed in ha_p…
…artition::late_extra_no_cache The problem was that multi_range_read_info_const() called multi_range_key_create_key() which changed m_part_spec.start_part, while there was an activ table scan ongoing. Fixed by copying and restoring m_part_spec around multi_range_key_create_calls()
- Loading branch information
Showing
3 changed files
with
47 additions
and
1 deletion.
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,15 @@ | ||
| CREATE TABLE t1 (f1 INT, f2 INT, f3 INT, f4 INT, KEY (f4), | ||
| KEY (f1,f4,f3,f2) | ||
| ) PARTITION BY RANGE(f1) ( PARTITION p VALUES LESS THAN MAXVALUE ); | ||
| INSERT IGNORE INTO t1 VALUES | ||
| (140,0,0,7),(143,92,NULL,0),(0,0,NULL,154),(NULL,255,117,197),(0,0,NULL,0),(60,0,0,1); | ||
| CREATE TABLE t2 (f INT); | ||
| INSERT INTO t2 VALUES (NULL),(35),(NULL),(2); | ||
| SELECT * FROM t1, t2 WHERE f4 >= f; | ||
| f1 f2 f3 f4 f | ||
| 0 0 NULL 154 2 | ||
| 0 0 NULL 154 35 | ||
| 140 0 0 7 2 | ||
| NULL 255 117 197 2 | ||
| NULL 255 117 197 35 | ||
| DROP TABLE t1, t2; |
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,22 @@ | ||
| # | ||
| # Test cases related to row cache | ||
| # | ||
|
|
||
| # The server must support partitioning. | ||
| --source include/have_partition.inc | ||
|
|
||
| CREATE TABLE t1 (f1 INT, f2 INT, f3 INT, f4 INT, KEY (f4), | ||
| KEY (f1,f4,f3,f2) | ||
| ) PARTITION BY RANGE(f1) ( PARTITION p VALUES LESS THAN MAXVALUE ); | ||
|
|
||
| INSERT IGNORE INTO t1 VALUES | ||
| (140,0,0,7),(143,92,NULL,0),(0,0,NULL,154),(NULL,255,117,197),(0,0,NULL,0),(60,0,0,1); | ||
|
|
||
| CREATE TABLE t2 (f INT); | ||
| INSERT INTO t2 VALUES (NULL),(35),(NULL),(2); | ||
|
|
||
| --sorted_result | ||
| SELECT * FROM t1, t2 WHERE f4 >= f; | ||
|
|
||
| # Cleanup | ||
| DROP TABLE t1, t2; |
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