Skip to content

Commit

Permalink
ddl: clone table for show columns (#55309)
Browse files Browse the repository at this point in the history
close #55301
  • Loading branch information
GMHDBJD authored Aug 9, 2024
1 parent b066365 commit 29122de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/executor/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,11 @@ func (e *ShowExec) fetchShowColumns(ctx context.Context) error {
if err != nil {
return errors.Trace(err)
}
// we will fill the column type information later, so clone a new table here.
tb, err = table.TableFromMeta(tb.Allocators(e.Ctx().GetTableCtx()), tb.Meta().Clone())
if err != nil {
return errors.Trace(err)
}
var (
fieldPatternsLike collate.WildcardPattern
fieldFilter string
Expand Down

0 comments on commit 29122de

Please sign in to comment.