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-27670 Assertion `(cs->state & 0x20000) == 0' failed in my_strnnc…
…ollsp_nchars_generic_8bit Also fixes: MDEV-27768 MDEV-25440: Assertion `(cs->state & 0x20000) == 0' failed in my_strnncollsp_nchars_generic_8bit The "strnncollsp_nchars" virtual function pointer for tis620_thai_nopad_ci was incorrectly initialized to a generic function my_strnncollsp_nchars_generic_8bit(), which crashed on assert. Implementing a tis620 specific function version.
- Loading branch information
Showing
8 changed files
with
298 additions
and
2 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
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
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,47 @@ | ||
| # | ||
| # MDEV-27768 MDEV-25440: Assertion `(cs->state & 0x20000) == 0' failed in my_strnncollsp_nchars_generic_8bit | ||
| # | ||
| CREATE TABLE t1 ( | ||
| a CHAR | ||
| ) COLLATE=tis620_thai_nopad_ci | ||
| PARTITION BY RANGE COLUMNS (a) | ||
| ( | ||
| PARTITION p0 VALUES LESS THAN (''), | ||
| PARTITION p VALUES LESS THAN ('') | ||
| ); | ||
| ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition | ||
| CREATE TABLE t1 ( | ||
| a CHAR | ||
| ) COLLATE=tis620_thai_nopad_ci | ||
| PARTITION BY RANGE COLUMNS (a) | ||
| ( | ||
| PARTITION p0 VALUES LESS THAN (''), | ||
| PARTITION p VALUES LESS THAN (' ') | ||
| ); | ||
| ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition | ||
| CREATE TABLE t1 ( | ||
| a CHAR | ||
| ) COLLATE=tis620_thai_nopad_ci | ||
| PARTITION BY RANGE COLUMNS (a) | ||
| ( | ||
| PARTITION p0 VALUES LESS THAN (' '), | ||
| PARTITION p VALUES LESS THAN ('') | ||
| ); | ||
| ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition | ||
| CREATE TABLE t1 | ||
| ( | ||
| id INT NOT NULL, | ||
| data VARCHAR(2), | ||
| KEY data_id (data(1),id) | ||
| ) COLLATE tis620_thai_nopad_ci ENGINE=MyISAM | ||
| PARTITION BY RANGE (id) | ||
| ( | ||
| PARTITION p10 VALUES LESS THAN (10), | ||
| PARTITION p20 VALUES LESS THAN (20) | ||
| ); | ||
| INSERT INTO t1 VALUES (4, 'ab'), (14, 'ab'), (19,''),(9,'') ; | ||
| SELECT id FROM t1 WHERE data='' ORDER BY id; | ||
| id | ||
| 9 | ||
| 19 | ||
| 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,52 @@ | ||
| --source include/have_partition.inc | ||
| --source include/have_tis620.inc | ||
|
|
||
| --echo # | ||
| --echo # MDEV-27768 MDEV-25440: Assertion `(cs->state & 0x20000) == 0' failed in my_strnncollsp_nchars_generic_8bit | ||
| --echo # | ||
|
|
||
| --error ER_RANGE_NOT_INCREASING_ERROR | ||
| CREATE TABLE t1 ( | ||
| a CHAR | ||
| ) COLLATE=tis620_thai_nopad_ci | ||
| PARTITION BY RANGE COLUMNS (a) | ||
| ( | ||
| PARTITION p0 VALUES LESS THAN (''), | ||
| PARTITION p VALUES LESS THAN ('') | ||
| ); | ||
|
|
||
| --error ER_RANGE_NOT_INCREASING_ERROR | ||
| CREATE TABLE t1 ( | ||
| a CHAR | ||
| ) COLLATE=tis620_thai_nopad_ci | ||
| PARTITION BY RANGE COLUMNS (a) | ||
| ( | ||
| PARTITION p0 VALUES LESS THAN (''), | ||
| PARTITION p VALUES LESS THAN (' ') | ||
| ); | ||
|
|
||
| --error ER_RANGE_NOT_INCREASING_ERROR | ||
| CREATE TABLE t1 ( | ||
| a CHAR | ||
| ) COLLATE=tis620_thai_nopad_ci | ||
| PARTITION BY RANGE COLUMNS (a) | ||
| ( | ||
| PARTITION p0 VALUES LESS THAN (' '), | ||
| PARTITION p VALUES LESS THAN ('') | ||
| ); | ||
|
|
||
|
|
||
| CREATE TABLE t1 | ||
| ( | ||
| id INT NOT NULL, | ||
| data VARCHAR(2), | ||
| KEY data_id (data(1),id) | ||
| ) COLLATE tis620_thai_nopad_ci ENGINE=MyISAM | ||
| PARTITION BY RANGE (id) | ||
| ( | ||
| PARTITION p10 VALUES LESS THAN (10), | ||
| PARTITION p20 VALUES LESS THAN (20) | ||
| ); | ||
| INSERT INTO t1 VALUES (4, 'ab'), (14, 'ab'), (19,''),(9,'') ; | ||
| SELECT id FROM t1 WHERE data='' ORDER BY id; | ||
| 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