Skip to content

select lock in share mode Unexpected behavior #19336

@haiying-gao

Description

@haiying-gao

Description

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

<!-- a step by step guide for reproducing the bug. -->
(root@192.168.3.11:4000)[test]
(root@192.168.3.11:4000)[test]show create table t;
+-------+------------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                               |
+-------+------------------------------------------------------------------------------------------------------------+
| t     | CREATE TABLE `t` (
  `id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin |
+-------+------------------------------------------------------------------------------------------------------------+
1 row in set (0.05 sec)

(root@192.168.3.11:4000)[test]select * from t lock in share mode;
ERROR 1105 (HY000): Can't find column test.t._tidb_rowid in schema Column: [test.t.id] Unique key: []
(root@192.168.3.11:4000)[test]

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

select * from t lock in share mode;
Empty set (0.00 sec)

3. What did you see instead (Required)

ERROR 1105 (HY000): Can't find column test.t._tidb_rowid in schema Column: [test.t.id] Unique key: []

4. What is your TiDB version? (Required)

v4.0.3 and v4.0.4

SIG slack channel

#sig-exec

Score

  • 300

Mentor

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions