[tarantool-patches] Re: [PATCH v2 3/3] sql: Fix destructors for constraints
n.pettik
korablev at tarantool.org
Wed Jul 3 02:27:13 MSK 2019
> On 28 Jun 2019, at 15:07, imeevma at tarantool.org wrote:
>
> Prior to this patch, the data needed to create the constraints in
> VDBE was stored in the temporary registers of the parser. Since
> this data is necessary for creating destructors, it was
> transferred to standard registers.
sql: use common registers instead of temp. for constraints data
Prior to this patch, data needed to form tuple to be inserted to
_fk_constraint and _ck_constraint system spaces (to create corresponding
constraints) was stored in the range of temporary register. After
insertion, temporary registers are released. On the other hand, this
data is required for providing clean-up in case of creation fail (i.e.
removing already created constraints within one CREATE TABLE statement).
Hence, instead of using temporary registers let's use ordinary ones.
Closes #4183
More information about the Tarantool-patches
mailing list