|
The error isn't bogus, here is a variation of the test case which additionally produces a wrong result:
--source include/have_innodb.inc
|
|
CREATE OR REPLACE TABLE t (
|
id bigint NOT NULL,
|
c varchar(8) NOT NULL,
|
UNIQUE KEY id (id)
|
) ENGINE=InnoDB;
|
|
ALTER TABLE t ADD PRIMARY KEY (id DESC);
|
|
INSERT INTO t VALUES (1,''),(2,'foo'),(3,''),(4,'bar');
|
|
SELECT * FROM t WHERE id > 2 OR c IS NULL;
|
|
# Cleanup
|
DROP TABLE t;
|
|
preview-10.8-MDEV-13756-desc-indexes 43444ff5d
|
SELECT * FROM t WHERE id > 2 OR c IS NULL;
|
id c
|
DROP TABLE t;
|
bug.t2 'innodb' [ fail ] Found warnings/errors in server log file!
|
Test ended at 2022-01-06 21:35:15
|
line
|
2022-01-06 21:35:15 4 [ERROR] Found index PRIMARY whose column info does not match that of MariaDB.
|
2022-01-06 21:35:15 4 [ERROR] InnoDB indexes are inconsistent with what defined in .frm for table ./test/t
|
|