Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-27408 DESC index on a Mroonga table causes wrong order of result…
… set disallow descending indexes in mroonga
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 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
9 changes: 9 additions & 0 deletions
9
storage/mroonga/mysql-test/mroonga/storage/r/index_desc.result
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,9 @@ | ||
# | ||
# MDEV-27408 DESC index on a Mroonga table causes wrong order of result set | ||
# | ||
create table t1 (a int, key(a desc)); | ||
ERROR HY000: DESC indexes are not supported | ||
show warnings; | ||
Level Code Message | ||
Error 1005 DESC indexes are not supported | ||
Warning 1030 Got error 1005 "Unknown error 1005" from storage engine Mroonga |
15 changes: 15 additions & 0 deletions
15
storage/mroonga/mysql-test/mroonga/storage/t/index_desc.test
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 @@ | ||
--source ../../include/mroonga/have_mroonga.inc | ||
|
||
--echo # | ||
--echo # MDEV-27408 DESC index on a Mroonga table causes wrong order of result set | ||
--echo # | ||
|
||
--error ER_CANT_CREATE_TABLE | ||
create table t1 (a int, key(a desc)); | ||
show warnings; | ||
#show create table t1; | ||
#insert into t1 values (1),(3),(2); | ||
#select * from t1 order by a; | ||
#drop table t1; | ||
|
||
--source ../../include/mroonga/have_mroonga_deinit.inc |