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 D2CDF6F3E5; Thu, 11 Nov 2021 13:50:03 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D2CDF6F3E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1636627804; bh=acQdxxixwb+suYUyAOgV16/BbI1SGZMpAgw53hcukuM=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=ToLVtQjVFosqujtjgq63mwHN8fPD8mwEmEHiTC+U/2NKJOm1EUft6IHRU22t7j7OE AysuxWHqOGR7hbdrpOuTbGCUyLXJh7bRHEUMkuxVrwEceZV6vxDW5kvAq+F4ud4lRc MTjtz2LvlAJIo8qDun7hsgxCfNH+7tePSkt/+Hvw= 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 970306F3E5 for ; Thu, 11 Nov 2021 13:48:48 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 970306F3E5 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1ml7dP-0004qC-QJ; Thu, 11 Nov 2021 13:48:48 +0300 To: kyukhin@tarantool.org Cc: tarantool-patches@dev.tarantool.org Date: Thu, 11 Nov 2021 13:48:47 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9731B3922EC063979A442978D427656AE2233A9C8B25E6BF500894C459B0CD1B95F7932B370A87ACAA70FD8AFBC952704BD7B9CED87D25567903EDB4B0951EB1E X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE721B3E54BB37EA0B4EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063748424D8FCCA3295D8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D85259AD0CEAEDA5CC58C0062F65707904117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC2EE5AD8F952D28FBA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364762BB6847A3DEAEFB0F43C7A68FF6260569E8FC8737B5C2249EC8D19AE6D49635B68655334FD4449CB9ECD01F8117BC8BEAAAE862A0553A39223F8577A6DFFEA7C289736CE4F78F08343847C11F186F3C59DAA53EE0834AAEE X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A213B5FB47DCBC3458834459D11680B505BC806F8490DDC35F58AE6175E1517188 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C7E9FEBB9C11794A1E6F508B5B0B562A4E0B7E92FBBD0FD7A9C2B6934AE262D3EE7EAB7254005DCED556CBE7F905700A49510FB958DCE06DB6ED91DBE5ABE359AC8952F428387DEC02272C4C079A4C8AD93EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34F3735C80F9F4B96D8DBCD87E3BC0F103249C7623A65B0ADB821B72516E2B240DE589ACF77DA07F411D7E09C32AA3244CFEA7B3ADCD8411737130299154E54CBDB4DF56057A86259F729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj4t8MBgWr8bJUjgrjmVQKCg== X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5DA4680A0E05D6D182E5CA170CDE6B774D83D72C36FC87018B9F80AB2734326CD2FB559BB5D741EB96352A0ABBE4FDA4210A04DAD6CC59E33667EA787935ED9F1B 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: rework 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 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/CMakeLists.txt | 1 - src/box/bind.c | 5 +- src/box/sql/func.c | 978 ++++++++++++++++--------------------- src/box/sql/main.c | 10 - src/box/sql/mem.c | 199 +------- src/box/sql/mem.h | 170 +------ src/box/sql/printf.c | 24 +- src/box/sql/sqlInt.h | 100 +--- src/box/sql/trigger.c | 7 +- src/box/sql/utf.c | 95 ---- src/box/sql/vdbe.h | 9 +- src/box/sql/vdbeInt.h | 1 - src/box/sql/vdbeapi.c | 238 +-------- src/box/sql/vdbeaux.c | 57 +-- src/box/sql/whereexpr.c | 18 +- test/sql-tap/func.test.lua | 4 +- test/sql-tap/uuid.test.lua | 11 +- 17 files changed, 523 insertions(+), 1404 deletions(-) delete mode 100644 src/box/sql/utf.c -- 2.25.1