From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 00F0B6BD01; Tue, 30 Mar 2021 02:10:24 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 00F0B6BD01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1617059424; bh=54AXqdWa4kRz7gYxbey70RP38HcuqLhZurE1G411kmQ=; h=To:Cc:References:Date:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=WWa9vqfAwpTbd3nDm5HhhVsOHjmSaJrweMsHp2uat4YUX1Pckj5sBBVxrC5OUjauw FHu70A0rMlPlDfVLkV20EOpjnIT/2XneKE0bba6mupX5HF0cdg+vthI75gYUXy7YT2 1IBDuCmvYY948GMwCW0JCJFWrETQrAoVYop8gMGo= Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 01D1F6BD0F for ; Tue, 30 Mar 2021 02:06:20 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 01D1F6BD0F Received: by smtpng3.m.smailru.net with esmtpa (envelope-from ) id 1lR0xf-0002EX-6g; Tue, 30 Mar 2021 02:06:19 +0300 To: imeevma@tarantool.org, tsafin@tarantool.org Cc: tarantool-patches@dev.tarantool.org References: Message-ID: <9f4a0eef-29a7-a083-42e9-16caccf160a8@tarantool.org> Date: Tue, 30 Mar 2021 01:06:18 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9ED7173E37F4E32947A0146560F8BA709498CFB6209D8582A182A05F538085040B207A0C5621C1848DBF55BBA04E1A40DF04A67E3C2944B900164F5913543EE70 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE73B44982FA5E78411EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637D3219148F76DED538638F802B75D45FF914D58D5BE9E6BC131B5C99E7648C95CE99938B3FD79E1DF189DEE011D80665491DE53A495500BE7A471835C12D1D9774AD6D5ED66289B5278DA827A17800CE78C592797616C97AB9FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C3ECBEDCEC3CCF9A28117882F4460429728AD0CFFFB425014E868A13BD56FB6657E2021AF6380DFAD1A18204E546F3947C0B7D0EA88DDEDAC722CA9DD8327EE4930A3850AC1BE2E735F43AACC0BCEB2632C4224003CC83647689D4C264860C145E X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2AD77751E876CB595E8F7B195E1C97831FB965E4CF9DE7C1F9BB839037DF3A6B5 X-C1DE0DAB: 0D63561A33F958A55D6CCEC6AB12B18D23E67275D0F808615117873FB49B1D4ED59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7502E6951B79FF9A3F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D348BE83DFD8AFB1CAC728B7FF57FE11FFF3BF4274B2E713AF3E5581B3A3193B167E04F29D86EA637A91D7E09C32AA3244C10EC33BF0E073294A6DB74264D8BA3D57C0C08F7987826B9FACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojljIiQOC84rRhQUyGIL1NBg== X-Mailru-Sender: 689FA8AB762F73936BC43F508A063822A6EAFB35E87DC7D88888C2E002820E133841015FED1DE5223CC9A89AB576DD93FB559BB5D741EB963CF37A108A312F5C27E8A8C3839CE0E267EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v4 37/53] sql: introduce mem_set_frame() X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Vladislav Shpilevoy via Tarantool-patches Reply-To: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Thanks for the patch! > diff --git a/src/box/sql/mem.c b/src/box/sql/mem.c > index 3701741ef..078de0e62 100644 > --- a/src/box/sql/mem.c > +++ b/src/box/sql/mem.c > @@ -604,6 +604,15 @@ mem_set_pointer(struct Mem *mem, void *ptr) > mem->field_type = field_type_MAX; > } > > +void > +mem_set_frame(struct Mem *mem, struct VdbeFrame *frame) > +{ > + mem_clear(mem); > + mem->flags = MEM_Frame; > + mem->u.pFrame = frame; > + mem->field_type = field_type_MAX; The type is already installed by mem_clear().