[tarantool-patches] [PATCH 1/2] sql: fix typo in MakeRecord memory hint

AKhatskevich avkhatskevich at tarantool.org
Thu Sep 27 15:39:04 MSK 2018


Part of: #2181
Related to: #3021
---
Issue: https://github.com/tarantool/tarantool/issues/3021

 src/box/sql/update.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/box/sql/update.c b/src/box/sql/update.c
index 730872fc6..1069f62cb 100644
--- a/src/box/sql/update.c
+++ b/src/box/sql/update.c
@@ -276,9 +276,9 @@ sqlite3Update(Parse * pParse,		/* The parser context */
 								pPk->def);
 		sqlite3VdbeAddOp4(v, OP_MakeRecord, iPk, pk_part_count,
 				  regKey, zAff, pk_part_count);
-		sqlite3VdbeAddOp2(v, OP_IdxInsert, iEph, regKey);
 		/* Set flag to save memory allocating one by malloc. */
 		sqlite3VdbeChangeP5(v, 1);
+		sqlite3VdbeAddOp2(v, OP_IdxInsert, iEph, regKey);
 	}
 	/* End the database scan loop.
 	 */
-- 
2.14.1





More information about the Tarantool-patches mailing list