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 CC6B76EC58; Wed, 26 May 2021 00:50:48 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org CC6B76EC58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1621979448; bh=Hy50N3YREzO9qmH/Uz9TuvU7oBgN6TSAR63bqAclB7s=; 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=iPZxwHHabu6wqez4M9/UjgY3FNkIDRkxluLbiKxLZWA2vnPv5Y9xLz9ZQZ8a9bC6e cBoa9jYsCPP7FOZhlCRatRWf5gjaXZgESOyWwM6a0DaUmL4AIX7VqHzaS8EW5fa54L xX9kmsbiglcvcXw5oNfGFeJeeE6OxLJOQShHvBf0= Received: from smtp31.i.mail.ru (smtp31.i.mail.ru [94.100.177.91]) (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 09F246EC58 for ; Wed, 26 May 2021 00:50:47 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 09F246EC58 Received: by smtp31.i.mail.ru with esmtpa (envelope-from ) id 1llewo-00036V-CW; Wed, 26 May 2021 00:50:46 +0300 To: Mergen Imeev Cc: tarantool-patches@dev.tarantool.org References: <9d53f29d460d7a4194cb3f95de4b5a4016453db3.1621503852.git.imeevma@gmail.com> <2cf25c21-9522-446d-3cf9-d36e0523d24b@tarantool.org> <20210525141313.GA81084@tarantool.org> Message-ID: <67f98969-53b2-52ab-3042-ecb9aef304e1@tarantool.org> Date: Tue, 25 May 2021 23:50:45 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <20210525141313.GA81084@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9F4D89F53055293B77564E10A57528F4ECA5B5560116D8F35182A05F5380850400019AECF65A32BC2E9F687F1732424D417C262A2FA2B1029296B7E439A6C6DFE X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7F65C230EDDCD559EEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063745D431239A8C7DA08638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8A594B6A9E3621198738127A98428CCCA117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCC908CD1B87A134A2A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F4460429728776938767073520B1593CA6EC85F86D28451B159A507268D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EED76C6ED7039589DE9935A1E27F592749D8FC6C240DEA7642DBF02ECDB25306B2B78CF848AE20165D0A6AB1C7CE11FEE31DAA61796BF5227B6136E347CC761E07C4224003CC836476EA7A3FFF5B025636E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F79006373BC478629CBEC79DEFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2368A440D3B0F6089093C9A16E5BC824A2A04A2ABAA09D25379311020FFC8D4AD0F8F1E176A3CA63E3B47D6898FF5E9B2 X-C1DE0DAB: 0D63561A33F958A5CD739F4DCA609507865FBBDAAF66C6B51943117C6BED2099D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA75E3127721F5A72C97410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D348F9E8EBB462314877F1655F0D5654FBF804BC0B3E4C7775426A491DE01151FD5B9A604EB4D3D433C1D7E09C32AA3244CFD098F0F48043BEAD345FC2CB263AD04E646F07CC2D4F3D8729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojV3CWresp27cvKu5vVCKKEw== X-Mailru-Sender: 504CC1E875BF3E7D9BC0E5172ADA3110263C8D674E3BC9DA46AEE09B3D3F249C272A3535CDC8A04407784C02288277CA03E0582D3806FB6A5317862B1921BA260ED6CFD6382C13A6112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH 1/1] sql: introduce UUID field type 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" Nice fixes! > diff --git a/src/box/sql/mem.c b/src/box/sql/mem.c > index a518fd0c6..9a6689d7d 100644 > --- a/src/box/sql/mem.c > +++ b/src/box/sql/mem.c > @@ -81,6 +91,8 @@ mem_str(const struct Mem *mem) > case MEM_TYPE_MAP: > case MEM_TYPE_ARRAY: > return mp_str(mem->z); > + case MEM_TYPE_UUID: > + return tt_sprintf("%s", tt_uuid_str(&mem->u.uuid)); You don't need tt_sprintf() either. You need to simply return tt_uuid_str().