Skip to content

Commit

Permalink
MDEV-22553: Assertion `info->lastpos == (~ (my_off_t) 0)' failed in m…
Browse files Browse the repository at this point in the history
…i_rkey

In mi_check_index_tuple(), when rowid filter check returns
CHECK_OUT_OF_RANGE, set info->lastpos= HA_OFFSET_ERROR, like
it is done above for the ICP check.
  • Loading branch information
spetrunia committed Jul 8, 2020
1 parent 0d6d801 commit 4122109
Show file tree
Hide file tree
Showing 3 changed files with 1,655 additions and 1 deletion.
21 changes: 21 additions & 0 deletions mysql-test/main/rowid_filter_myisam.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# MDEV-22553: Assertion `info->lastpos == (~ (my_off_t) 0)' failed in mi_rkey with rowid_filer=on
#
CREATE TABLE t1 (
a smallint(6) DEFAULT NULL,
b bigint(20) DEFAULT NULL,
c varchar(64) DEFAULT NULL,
d varchar(64) DEFAULT NULL,
e smallint(6) DEFAULT NULL,
f bigint(20) DEFAULT NULL,
KEY a (a),
KEY d (d),
KEY f (f)
) ENGINE=MyISAM;
ALTER TABLE t1 DISABLE KEYS;
# Insert a lot of rows
ALTER TABLE t1 ENABLE KEYS;
# Must not crash:
SELECT * FROM t1 WHERE ( a BETWEEN 255 AND 270 OR f = 200 ) AND f IN ( 1, 4, 112, 143 ) AND d IN ('Montana', 'South Dakota');
a b c d e f
DROP TABLE t1;
Loading

0 comments on commit 4122109

Please sign in to comment.