Skip to content

Commit

Permalink
Merge branch '1.2-dev' into nosdkretry1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jun 24, 2024
2 parents adbb55b + 80cf8cb commit 6cbc62c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/frontend/mysql_cmd_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"github.com/confluentinc/confluent-kafka-go/v2/kafka"
"github.com/fagongzi/goetty/v2"
"github.com/google/uuid"
"github.com/matrixorigin/matrixone/pkg/catalog"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"

Expand Down Expand Up @@ -406,8 +407,12 @@ func handleShowTableStatus(ses *Session, execCtx *ExecCtx, stmt *tree.ShowTableS
}
roleId := row[17].(uint32)
// role name
if row[18], err = getRoleName(roleId); err != nil {
return err
if tableName == catalog.MO_DATABASE || tableName == catalog.MO_TABLES || tableName == catalog.MO_COLUMNS {
row[18] = moAdminRoleName
} else {
if row[18], err = getRoleName(roleId); err != nil {
return err
}
}
mrs.AddRow(row)
}
Expand Down

0 comments on commit 6cbc62c

Please sign in to comment.