Skip to content

Commit

Permalink
add missing local temporary table
Browse files Browse the repository at this point in the history
Signed-off-by: you06 <[email protected]>
  • Loading branch information
you06 committed Jun 14, 2022
1 parent 84c91e5 commit 44e8942
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1968,6 +1968,7 @@ func (s *session) ExecutePreparedStmt(ctx context.Context, stmtID uint32, args [
var snapshotTS uint64
if s.sessionVars.IsIsolation(ast.ReadCommitted) || preparedStmt.ForUpdateRead {
is = domain.GetDomain(s).InfoSchema()
is = temptable.AttachLocalTemporaryTableInfoSchema(s, is)
} else if preparedStmt.SnapshotTSEvaluator != nil {
snapshotTS, err = preparedStmt.SnapshotTSEvaluator(s)
if err != nil {
Expand Down

0 comments on commit 44e8942

Please sign in to comment.