[Tarantool-patches] [PATCH] sql: add missed sqlReleaseTempRange()
Roman Khabibov
roman.habibov at tarantool.org
Sat Sep 12 01:22:03 MSK 2020
Clean up temp registers with sqlReleaseTempRange() during check
constraint alter.
---
Branch: https://github.com/tarantool/tarantool/tree/romanhabibov/release-temp-reg
Issue: -
src/box/sql/alter.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/box/sql/alter.c b/src/box/sql/alter.c
index 14f6c1a97..4874b46c9 100644
--- a/src/box/sql/alter.c
+++ b/src/box/sql/alter.c
@@ -136,6 +136,7 @@ sql_alter_ck_constraint_enable(struct Parse *parse)
tuple_reg + field_count);
sqlVdbeAddOp4(v, OP_IdxReplace, tuple_reg + field_count, 0, 0,
(char *)ck_space, P4_SPACEPTR);
+ sqlReleaseTempRange(parse, tuple_reg, field_count + 1);
exit_alter_ck_constraint:
sqlDbFree(db, constraint_name);
sqlSrcListDelete(db, src_tab);
--
2.24.3 (Apple Git-128)
More information about the Tarantool-patches
mailing list