We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e697fe6 commit 1c86463Copy full SHA for 1c86463
1 file changed
pkg/executor/grant.go
@@ -124,12 +124,12 @@ func (e *GrantExec) Next(ctx context.Context, _ *chunk.Chunk) error {
124
// This makes `t` and `T` write to the same privilege row.
125
e.Level.TableName = tbl.Meta().Name.O
126
}
127
- if db, succ := schema.SchemaByName(dbNameStr); succ {
+ db, succ := schema.SchemaByName(dbNameStr)
128
+ if succ {
129
dbName = db.Name.O
130
131
if len(e.Level.DBName) > 0 {
132
// The database name should also match.
- db, succ := schema.SchemaByName(dbNameStr)
133
if !succ || db.Name.L != dbNameStr.L {
134
return infoschema.ErrTableNotExists.GenWithStackByArgs(dbName, e.Level.TableName)
135
0 commit comments