Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: add TxnManager to manage txn in session #30574

Merged
merged 13 commits into from
Dec 22, 2021
Prev Previous commit
Next Next commit
modify
lcwangchao committed Dec 9, 2021
commit 42b55dedc2d61cf346cac40754ca7ceb2a32602b
2 changes: 1 addition & 1 deletion session/session.go
Original file line number Diff line number Diff line change
@@ -2014,7 +2014,7 @@ func (s *session) ExecutePreparedStmt(ctx context.Context, stmtID uint32, args [
}

txnCtxProvider := &sessiontxn.SimpleTxnContextProvider{
InfoSchema: is.(infoschema.InfoSchema),
InfoSchema: is,
}
if err = sessiontxn.GetTxnManager(s).SetContextProvider(txnCtxProvider); err != nil {
return nil, err