pingcap/tidb
在 GitHub 查看Provide a session variable to query the last transaction scope
Open
#20,775 建立於 2020年11月2日
good first issuesig/transactiontype/enhancement
倉庫指標
- Star
- (40,090 star)
- PR 合併指標
- (平均合併 14天 4小時) (30 天內合併 346 個 PR)
描述
Development Task
To figure out which transaction scope the last transaction uses, we need a read-only session variable to query it. This is a part of the global/local transaction roadmap #20448.
Implementations
It's similar to other session variables like last_insert_id and last_plan_from_cache. You can refer to the implementation of these variables.