Skip to content

Commit 6870058

Browse files
authored
mysql: add references priv in AllColumnPrivs (pingcap#1358)
1 parent db58bac commit 6870058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql/privs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ var AllDBPrivs = Privileges{SelectPriv, InsertPriv, UpdatePriv, DeletePriv, Crea
309309
var AllTablePrivs = Privileges{SelectPriv, InsertPriv, UpdatePriv, DeletePriv, CreatePriv, DropPriv, IndexPriv, ReferencesPriv, AlterPriv, CreateViewPriv, ShowViewPriv}
310310

311311
// AllColumnPrivs is all the privileges in column scope.
312-
var AllColumnPrivs = Privileges{SelectPriv, InsertPriv, UpdatePriv}
312+
var AllColumnPrivs = Privileges{SelectPriv, InsertPriv, UpdatePriv, ReferencesPriv}
313313

314314
// StaticGlobalOnlyPrivs is all the privileges only in global scope and different from dynamic privileges.
315315
var StaticGlobalOnlyPrivs = Privileges{ProcessPriv, ShowDBPriv, SuperPriv, CreateUserPriv, CreateTablespacePriv, ShutdownPriv, ReloadPriv, FilePriv, ReplicationClientPriv, ReplicationSlavePriv, ConfigPriv}

0 commit comments

Comments
 (0)