| Bug #111261 | Skip scan results in wrong query results | ||
|---|---|---|---|
| Submitted: | 2 Jun 2023 17:38 | Modified: | 5 Jun 2023 6:08 |
| Reporter: | Baolin Huang (OCA) | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
| Version: | 8.0.32, 8.0.33 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[2 Jun 2023 17:38]
Baolin Huang
[2 Jun 2023 17:54]
Baolin Huang
The problem is reproduced on the latest version 8.0.32.
Here gives the result.
```
SET global innodb_purge_stop_now=ON;
CREATE TABLE t1 (id BIGINT AUTO_INCREMENT PRIMARY KEY, s_id BIGINT, t_id VARCHAR(100), pad VARCHAR(512), INDEX sid_name(s_id, t_id));
CREATE PROCEDURE insert_numbers()
BEGIN
DECLARE i INT DEFAULT 1;
WHILE i <= 1000 DO
INSERT INTO t1 (s_id, t_id, pad) VALUES (i/200, i, repeat('a', 512));
SET i = i + 1;
END WHILE;
END //
CALL insert_numbers();
INSERT INTO t1 (s_id,t_id, pad) SELECT s_id,t_id, pad from t1;
DELETE from t1 where s_id=3;
select id from t1 where t_id='800';
id
select id from t1 force index(primary) where t_id='800';
id
800
1800
SET global innodb_purge_stop_now=OFF;
DROP TABLE t1;
DROP PROCEDURE insert_numbers;
```
[5 Jun 2023 6:08]
MySQL Verification Team
Hello Huang, Thank you for the report and test case. Verified as described. regards, Umesh
