-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
affects-5.3This bug affects 5.3.x versions.This bug affects 5.3.x versions.severity/majorsig/sql-infraSIG: SQL InfraSIG: SQL Infratype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
CREATE ROLE `engineering`@`US`;
CREATE ROLE `engineering`@`INDIA`;
DROP ROLE engineering@INDIA;
DROP ROLE engineering@US;
SELECT user,host FROM mysql.user;
...
tidb> CREATE ROLE `engineering`@`US`;
Query OK, 0 rows affected (0.01 sec)
tidb> CREATE ROLE `engineering`@`INDIA`;
Query OK, 0 rows affected (0.00 sec)
tidb> DROP ROLE engineering@INDIA;
Query OK, 0 rows affected (0.01 sec)
tidb> DROP ROLE engineering@US;
Query OK, 0 rows affected (0.00 sec)
tidb> select user,host from mysql.user;
2. What did you expect to see? (Required)
+-------------+-------+
| user | host |
+-------------+-------+
| root | % |
+-------------+-------+
3 rows in set (0.00 sec)
3. What did you see instead (Required)
+-------------+-------+
| user | host |
+-------------+-------+
| root | % |
| engineering | india |
| engineering | us |
+-------------+-------+
3 rows in set (0.00 sec)
4. What is your TiDB version? (Required)
master&5.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
affects-5.3This bug affects 5.3.x versions.This bug affects 5.3.x versions.severity/majorsig/sql-infraSIG: SQL InfraSIG: SQL Infratype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.