Inconsistent error with MySQL for GRANT CREATE USER ON <specific db>.* #24439
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
severity/moderate
sig/sql-infra
SIG: SQL Infra
type/bug
The issue is confirmed as a bug.
type/compatibility
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
create user testuser@localhost;
grant create user on test.* to testuser@localhost;
2. What did you expect to see? (Required)
mysql> create user testuser@localhost;
Query OK, 0 rows affected (0.04 sec)
mysql> grant create user on test.* to testuser@localhost;
ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES
3. What did you see instead (Required)
tidb> create user testuser@localhost;
Query OK, 0 rows affected (0.01 sec)
tidb> grant create user on test.* to testuser@localhost;
ERROR 1054 (42S22): Unknown column 'Create_user_priv' in 'field list'
4. What is your TiDB version? (Required)
tidb_version(): Release Version: v4.0.0-beta.2-2806-ga6ec081b8
Edition: Community
Git Commit Hash: a6ec081
Git Branch: HEAD
UTC Build Time: 2021-05-06 14:56:18
GoVersion: go1.13.8
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
The text was updated successfully, but these errors were encountered: