Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong result of select @@session.tx_read_only #5478

Closed
shenli opened this issue Dec 24, 2017 · 0 comments
Closed

Wrong result of select @@session.tx_read_only #5478

shenli opened this issue Dec 24, 2017 · 0 comments
Assignees
Labels
type/bug The issue is confirmed as a bug.

Comments

@shenli
Copy link
Member

shenli commented Dec 24, 2017

Please answer these questions before submitting your issue. Thanks!

  1. 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> 
  1. What did you expect to see?
    @@session.tx_read_only should be 1 after executing set session transaction read only;

  2. What did you see instead?
    @@session.tx_read_only still be 0

  3. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
    All tidb-server versions could reproduce this issue.

@shenli shenli added the type/bug The issue is confirmed as a bug. label Dec 24, 2017
@winkyao winkyao assigned winkyao and unassigned winkyao Dec 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants