-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
type/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Please answer these questions before submitting your issue. Thanks!
- What did you do?
If possible, provide a recipe for reproducing the error.
mysql> select @@session.tx_read_only;
+------------------------+
| @@session.tx_read_only |
+------------------------+
| 0 |
+------------------------+
1 row in set (0.00 sec)
mysql> set session transaction read only;
Query OK, 0 rows affected (0.00 sec)
mysql> select @@session.tx_read_only;
+------------------------+
| @@session.tx_read_only |
+------------------------+
| 1 |
+------------------------+
1 row in set (0.00 sec)
mysql>
-
What did you expect to see?
@@session.tx_read_only should be 1 after executingset session transaction read only;
-
What did you see instead?
@@session.tx_read_only still be 0 -
What version of TiDB are you using (
tidb-server -V
or runselect tidb_version();
on TiDB)?
All tidb-server versions could reproduce this issue.
Metadata
Metadata
Assignees
Labels
type/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.