Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Mar 23, 2023
1 parent 87244bd commit 802d13d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions table/temptable/infoschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ func AttachLocalTemporaryTableInfoSchema(sctx sessionctx.Context, is infoschema.
// DetachLocalTemporaryTableInfoSchema detach local temporary table information schema from is
func DetachLocalTemporaryTableInfoSchema(is infoschema.InfoSchema) infoschema.InfoSchema {
if attachedInfoSchema, ok := is.(*infoschema.SessionExtendedInfoSchema); ok {
newIs := *attachedInfoSchema
newIs := attachedInfoSchema
newIs.LocalTemporaryTables = nil
return &newIs
return newIs
}

return is
Expand Down

0 comments on commit 802d13d

Please sign in to comment.