Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
N/A
-
None
Description
CREATE TABLE t (id int, c char(128) NOT NULL, KEY (c DESC)) ENGINE=MyISAM CHARSET latin1; |
INSERT INTO t VALUES (1,''),(2,'foo'),(3,''),(4,'bar'); |
|
SELECT c FROM t ORDER BY c; |
|
# Cleanup
|
DROP TABLE t; |
preview-10.8-MDEV-13756-desc-indexes 47c18283 |
MariaDB [test]> SELECT c FROM t ORDER BY c; |
+-----+ |
| c |
|
+-----+ |
| bar |
|
| foo |
|
| |
|
| |
|
+-----+ |
4 rows in set (0.000 sec) |
So, the empty strings go last, contrary to the expectation.
Reproducible with MyISAM and Aria.
Not reproducible with InnoDB.
Attachments
Issue Links
- is caused by
-
MDEV-13756 Implement descending index: KEY (a DESC, b ASC)
-
- Closed
-
- relates to
-
MDEV-27303 Table corruption after insert into a non-InnoDB table with DESC index
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is caused by |
Status | Open [ 1 ] | In Progress [ 3 ] |
Link |
This issue relates to |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Testing [ 10301 ] |
Fix Version/s | 10.8.1 [ 26815 ] | |
Fix Version/s | 10.8 [ 26121 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Testing [ 10301 ] | Closed [ 6 ] |
pushed into preview-10.8-
MDEV-13756-desc-indexes