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 B54DD6E1C9; Thu, 11 Nov 2021 13:45:26 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B54DD6E1C9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1636627526; bh=1oBoKENaJSAAj/qncv54li/FCR96oW6zG1UYGWygmZo=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=GOtdRlce0uscJtC3vogGMFan62bhGtT2DsHZvILiOLYunwhIa/gP8uR997cFkSFXW Q4SFyt4g0mJnBst3kom9lltn7fjLW4QTeg+tW34vKmiXEELVyZctAp2NjpnTq3pLrV 4HEzaoQforAFhtPiuhY4SF/VylF79EzaFJfxxZpY= 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 DDC5B6F3E5 for ; Thu, 11 Nov 2021 13:45:24 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org DDC5B6F3E5 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1ml7a7-0002qR-VY; Thu, 11 Nov 2021 13:45:24 +0300 To: kyukhin@tarantool.org Cc: tarantool-patches@dev.tarantool.org Date: Thu, 11 Nov 2021 13:45:23 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9731B3922EC0639792BB520D6BC54996EEEF308B3433E7AC900894C459B0CD1B9AFEAA8564E9CC99814BA3B7EB9C61066BD7B9CED87D25567F70E9905CEA40A81 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE78E8764B5BC580342EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006376F978168E59B07A5EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BBCA57AF85F7723F2D9D77C73F6A71F1F4A811DBC8A84CAC3CC7F00164DA146DAFE8445B8C89999728AA50765F7900637F6B57BC7E64490618DEB871D839B7333395957E7521B51C2DFABB839C843B9C08941B15DA834481F8AA50765F7900637F6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8BDC0F6C5B2EEF3D0C75ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C7E9FEBB9C11794A11DB6C789AE1465EA6984FB54B74CC7C49C2B6934AE262D3EE7EAB7254005DCED556CBE7F905700A49510FB958DCE06DB6ED91DBE5ABE359A729E4542F35B768FB936CB490224F2464EEA7BD89490CAC0EDDA962BC3F61961 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D3480665FBD8F49180C3A4DBB669E4A2B3E8A8C4BF48B0CC4306ECAFEDE854AD0E78C1C00BCC50DB2AC1D7E09C32AA3244C5745AA87B1C4362018220214AD0912A89CA7333006C390A0729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXgZbteN4OVBjj+z38esQgB0 X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5DF2660C2B777EAEFC7EFDF78B42163E7083D72C36FC87018B9F80AB2734326CD2FB559BB5D741EB96352A0ABBE4FDA4210A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v1 0/8] Rework standard function 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 refactors all non-aggregate standard functions and makes these functions work according to ANSI rules, if it is possible. However, the ANSI specific syntax for these functions will be presented later. https://github.com/tarantool/tarantool/issues/4145 https://github.com/tarantool/tarantool/tree/imeevma/gh-4145-rework-sql-built-in-funcs Mergen Imeev (8): sql: refactor ABS() funcion sql: rework CHAR_LENGTH() function sql: refactor UPPER() and LOWER() functions sql: refactor NULLIF() function sql: rework TRIM() function sql: rework POSITION() function sql: rework SUBSTR() function sql: refactor LIKE() function src/box/sql/func.c | 1143 +++++++++++++++----------------- test/sql-tap/badutf1.test.lua | 81 +-- test/sql-tap/func.test.lua | 16 +- test/sql-tap/func2.test.lua | 150 ++--- test/sql-tap/func3.test.lua | 10 +- test/sql-tap/position.test.lua | 80 ++- test/sql-tap/substr.test.lua | 121 +++- 7 files changed, 791 insertions(+), 810 deletions(-) -- 2.25.1