pingcap / pingcap/tidb

Without fast path, TiDB will return wrong row with plan cache

Open
#60,810 2 comments 0 reactions 1 assignee Claimed by @time-and-fate View on GitHub
severity/major sig/planner type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)

```
create table t (a int, b int);
insert t values (1, 7), (1, 8), (1, 9);
prepare stmt from 'select * from t where _tidb_rowid = ?';
set @a=2;
execute stmt using @a;
set @a=1;
execute stmt using @a;
```

### 2. What did you expect to see? (Required)

```
1 8
1 7
```

### 3. What did you see instead (Required)

```
1 8
1 8
```

### 4. What is your TiDB version? (Required)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.