pingcap/tidb

Provide a session variable to query the last transaction scope

Open

#20.775 aberto em 2 de nov. de 2020

Ver no GitHub
 (1 comment) (0 reactions) (1 assignee)Go (6.186 forks)batch import
good first issuesig/transactiontype/enhancement

Métricas do repositório

Stars
 (40.090 stars)
Métricas de merge de PR
 (Mesclagem média 14d 4h) (346 fundiu PRs em 30d)

Description

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.

Guia do colaborador