[MDEV-32774] Error 124 "Wrong index given to a function" upon HANDLER after DISABLE KEYS Created: 2023-11-11  Updated: 2023-11-11

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - Aria
Affects Version/s: 10.4, 10.5, 10.6, 10.11, 11.0, 11.1, 11.2
Fix Version/s: 10.4, 10.5, 10.6, 10.11, 11.0, 11.1, 11.2

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: None


 Description   

CREATE TABLE t (a INT, KEY(a)) ENGINE=Aria;
ALTER TABLE t DISABLE KEYS;
HANDLER t OPEN;
HANDLER t READ a NEXT;
 
# Cleanup
HANDLER t CLOSE;
DROP TABLE t;

10.4 9e321a44

mysqltest: At line 4: query 'HANDLER t READ a NEXT' failed: 1030: Got error 124 "Wrong index given to a function" from storage engine Aria

and in the error log

2023-11-11  2:56:15 4 [ERROR] mysql_ha_read: Got error 124 when reading table 't'

MyISAM works, so chances are something goes wrong with Aria here.


Generated at Thu Feb 08 10:33:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.