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 3530B6F3F2; Fri, 8 Oct 2021 20:31:36 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 3530B6F3F2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1633714296; bh=JFu6y/aLG1A9vDcrUkX7e3cpkM+GMZfaS+mVptyi2bY=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=guDAAgd2V7bmhZAaMXjY1CeUSxZ+EHpI9Hok5U1kqWGRzW0jMjD/y9yJGf7lnIhcj qAspczv+4/j0/SK7B/wlADQJ3BIEUPm0U0Vh8SvHOdnRKlHMRVJNO9UmsJdkw3jKwX 0lwYtIffpaI7Rs9bWAch5tU/t9PheAFrWkJuCkUw= Received: from smtpng1.i.mail.ru (smtpng1.i.mail.ru [94.100.181.251]) (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 679786EC55 for ; Fri, 8 Oct 2021 20:31:34 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 679786EC55 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1mYtiX-0007zs-L6; Fri, 08 Oct 2021 20:31:34 +0300 To: v.shpilevoy@tarantool.org Cc: tarantool-patches@dev.tarantool.org Date: Fri, 8 Oct 2021 20:31:33 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9A6D4E3B1981C4C7D436932E0370A3249AEA3E77A50CFBF89182A05F538085040B331D0A2D79AF0C61C6C54692171F08AAC23D23F1437CC171EBD113E05E5A739 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7BC08626EA5717D14EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006374B2D40F594293EAD8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D820A5CD47CB5A6DA46F160501EE118795117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC8C7ADC89C2F0B2A5A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD18C26CFBAC0749D213D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B62CFFCC7B69C47339089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C650BD2383FF25EF5C3B44205C15027CA89C56658F1253C219C2B6934AE262D3EE7EAB7254005DCED556CBE7F905700A49510FB958DCE06DB6ED91DBE5ABE359A805C47957401F48169F8FEF10F1C2C2993EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34AB80C45F81B80D630437CAC7460D4EA47BA1C9E012B09C5618EC3A6AFCB6B11D2C53189E929DD0B81D7E09C32AA3244CFC8A678AE453F4C61FE288818CC2F23ECE0B41342B755BCD729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXhyr8fm26EeF0IrHYEq54CI X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5D3B9C094376AB0198C639F871408597C283D72C36FC87018B9F80AB2734326CD2FB559BB5D741EB96352A0ABBE4FDA4210A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v1 00/21] Refactor non-standard and non-aggragate functions 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" This patch-set refactor the built-in SQL functions that were not refactored in the previous two patch-sets. It also simplifies struct Mem. https://github.com/tarantool/tarantool/issues/4145 https://github.com/tarantool/tarantool/tree/imeevma/gh-4145-row-sql-builtin-funcs Mergen Imeev (21): sql: refactor CHAR() function sql: refactor GREATEST() and LEAST() functions sql: refactor HEX() function sql: refactor LENGTH() function sql: refactor PRINTF() function sql: refactor RANDOM() function sql: rework RANDOMBLOB() function sql: refactor ZEROBLOB() function sql: refactor TYPEOF() function sql: refactor ROUND() function sql: refactor ROW_COUNT() function sql: rework UUID() function sql: refactor VERSION() function sql: refactor UNICODE() function sql: refactor of SOUNDEX() function sql: refactor REPLACE() function sql: refactor QUOTE() function sql: remove unused code sql: remove MEM_Dyn flag sql: remove MEM_Term flag sql: make arguments to be const src/box/bind.c | 5 +- src/box/sql/func.c | 937 +++++++++++++++---------------------- src/box/sql/main.c | 10 - src/box/sql/mem.c | 197 +------- src/box/sql/mem.h | 160 +------ src/box/sql/printf.c | 18 +- src/box/sql/sqlInt.h | 66 +-- src/box/sql/vdbe.h | 4 +- src/box/sql/vdbeapi.c | 238 +--------- src/box/sql/vdbeaux.c | 31 +- src/box/sql/whereexpr.c | 19 +- test/sql-tap/func.test.lua | 4 +- test/sql-tap/uuid.test.lua | 11 +- 13 files changed, 461 insertions(+), 1239 deletions(-) -- 2.25.1