Skip to content

Commit

Permalink
Change the error code to adapt to pingcap#54918
Browse files Browse the repository at this point in the history
  • Loading branch information
joechenrh committed Aug 2, 2024
1 parent 3144937 commit 2781e63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/infoschema/infoschema_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -1045,10 +1045,10 @@ func loadTableInfo(ctx context.Context, r autoid.Requirement, infoData *Data, tb

// table is not public
if tblInfo.State != model.StatePublic {
return nil, errors.Trace(errors.New(
fmt.Sprintf(
"Table is not public: (Schema ID %d) (Table ID %d)",
dbID, tblID)))
return nil, errors.Trace(ErrTableNotExists.FastGenByArgs(
fmt.Sprintf("(Schema ID %d)", dbID),
fmt.Sprintf("(Table ID %d)", tblID),
))
}

ConvertCharsetCollateToLowerCaseIfNeed(tblInfo)
Expand Down

0 comments on commit 2781e63

Please sign in to comment.