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 B85196C7D7; Tue, 27 Apr 2021 19:55:23 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B85196C7D7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1619542523; bh=osToEMI7k/WJxR1ctLv6/GjurqTRb+EuSA3/0Kopg0A=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=Fs+WwnUCounR4flV45bPNNwWk30KPoUKfK1K5Fyn0A7IX0HSsh3fRzwk1vi4GMK/m u6FCkWvq2GHtZMnOdP0TcetaMXgoipuiIi/W0YoZhbdEPIAXVS+4xwYDS6tODvfQa5 4Zm/A9PFq2mncSjwpDv0gJ+jXl0ZlS1UIY9WZqgo= Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (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 BADFF6FC8F for ; Tue, 27 Apr 2021 19:55:21 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org BADFF6FC8F Received: by smtpng2.m.smailru.net with esmtpa (envelope-from ) id 1lbQzZ-0007Wk-18; Tue, 27 Apr 2021 19:55:21 +0300 To: v.shpilevoy@tarantool.org Cc: tarantool-patches@dev.tarantool.org Date: Tue, 27 Apr 2021 19:55:20 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9ECFD8CE5F059401062EF72DCC8B8CDABD8D4F98D4AE0C03D182A05F538085040C7C116F4A977CA349753C0D0A5E68827F775019DF1D2C13D222FA8695ECC4B8C X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7492D3E4238663367EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006373D332FFE8BBF4EB58638F802B75D45FF914D58D5BE9E6BC1A93B80C6DEB9DEE97C6FB206A91F05B207E4301AA74681C8EEC517148083807BBDFBBEFFF4125B51D2E47CDBA5A96583C09775C1D3CA48CFA333A05395E4745B117882F4460429724CE54428C33FAD30A8DF7F3B2552694AC26CFBAC0749D213D2E47CDBA5A9658378DA827A17800CE7820CF4CC0E318EFB9FA2833FD35BB23DF004C906525384302BEBFE083D3B9BA71A620F70A64A45A98AA50765F79006372E808ACE2090B5E1725E5C173C3A84C3C5EA940A35A165FF2DBA43225CD8A89F83C798A30B85E16B57739F23D657EF2BB5C8C57E37DE458BEDA766A37F9254B7 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C8E0B2E50BE5001AC3901C1082D3B8F049154D895DD6C911D9C2B6934AE262D3EE7EAB7254005DCEDE285C580305385EE1E0A4E2319210D9B64D260DF9561598F01A9E91200F654B0279E343DB675BB2F8E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34CC972AA0E2E780C4E13AE97AF1C6E72F05DCC152CC47FE740173CBCE6A9A98C00B084C363766656C1D7E09C32AA3244CFA69A936651FC65C1B1E274E09F051763C6EB905E3A8056B729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojmGF4M/OAxzdizRHzsVHFHQ== X-Mailru-Sender: 689FA8AB762F73936BC43F508A06382244FDE713B750D25E9AE55F57B77CB66983D72C36FC87018B9F80AB2734326CD2FB559BB5D741EB96352A0ABBE4FDA4210A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 0/3] Replace MEM-type flags by enum mem_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: Mergen Imeev via Tarantool-patches Reply-To: imeevma@tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" After this patche-set, the MEM type could be determined by the value in the special field, and not by the "flags" field. https://github.com/tarantool/tarantool/issues/4906 https://github.com/tarantool/tarantool/tree/imeevma/gh-4906-rework-mem-types Changes in v2: - Added two new commits. Mergen Imeev (3): sql: initialize MEM used in aggregate functions sql: make mem_is_bin() to check only for VARBINARY sql: replace MEM-type flags by enum mem_type src/box/sql/func.c | 31 +- src/box/sql/mem.c | 954 +++++++++++++++++++++++------------------- src/box/sql/mem.h | 199 +++++---- src/box/sql/sqlInt.h | 7 + src/box/sql/vdbe.c | 16 +- src/box/sql/vdbeapi.c | 20 + src/box/sql/vdbemem.c | 3 +- 7 files changed, 673 insertions(+), 557 deletions(-) -- 2.25.1