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 019D66F852; Mon, 15 Nov 2021 19:06:46 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 019D66F852 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1636992406; bh=+a6QaJVbOyumip2YQSDF8gRy7TFSJLu5XVkY9CQtwMw=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=c3pHnFlrtomPZMk7O1oPPyPCxiUztF+gg8JGZ5wW4QRz6XaKVmj+jB3HMVtXEPh2d NJ5tCSaY3NWvSlAaJbfZKB66hOioeWLcHJqMZ9BwVF5paRVJ9UVb1gHQp2byorAvW/ JiG0zpgKl2koz0D6X+DCMjmPFGs34FJkzY3grrEo= 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 F384F6F852 for ; Mon, 15 Nov 2021 19:06:44 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org F384F6F852 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1mmeVI-0006JM-8M; Mon, 15 Nov 2021 19:06:44 +0300 To: v.shpilevoy@tarantool.org Cc: tarantool-patches@dev.tarantool.org Date: Mon, 15 Nov 2021 19:06:43 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD9731B3922EC0639791BFBC8C450C80827E49496A0B58C59AD00894C459B0CD1B96074C167E820F803F9656E0343CCCECE476574356F5A03882D7423A3730B9EE4 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7D21C9A3FF772B322EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006378B49D47CE295E66E8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D88508FEC0F2086C4C006551153D7D7DDA117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC974A882099E279BDA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735201E561CDFBCA1751FC26CFBAC0749D213D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6B1CFA6D474D4A6A4089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CA6674D4217F8769DAAD721A431F98D0AABF60D9C6DE3616E9C2B6934AE262D3EE7EAB7254005DCED1C8AEA1E975C27AC1E0A4E2319210D9B64D260DF9561598F01A9E91200F654B0EAEA4589B73F69A88E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34F6110710A6CC527FD40CB948E500F67E4FA7BB5AC2A4CDB842DA5939CE1D65C2A2A1AB87BF269AD01D7E09C32AA3244C0FA189CE3D393B8F73AA5EB16C49ADA7853296C06374E602729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojjLiSo6osCe5PtlV97N7K8Q== X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5D6068B1E171C2BD5EAA6148428B2E551383D72C36FC87018B9F80AB2734326CD2FB559BB5D741EB96352A0ABBE4FDA4210A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v1 0/2] Introduce mem_snprintf() 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 introduces function mem_snprintf() which can be used to get string representation of a MEM. https://github.com/tarantool/tarantool/issues/4145 https://github.com/tarantool/tarantool/tree/imeevma/gh-4145-follow-up Mergen Imeev (2): sql: omit quotes for UUID values in errors sql: introduce mem_snprintf() src/box/sql/func.c | 9 ++- src/box/sql/mem.c | 75 ++++++++++--------- src/box/sql/mem.h | 8 ++ src/box/sql/printf.c | 15 +--- test/sql-tap/cast.test.lua | 4 +- test/sql-tap/decimal.test.lua | 6 +- .../gh-5364-define-bit-wise-rules.test.lua | 8 +- ...-5756-implicit-cast-in-arithmetic.test.lua | 10 +-- test/sql-tap/sql-errors.test.lua | 7 +- test/sql-tap/uuid.test.lua | 58 +++++++------- test/sql/types.result | 2 +- 11 files changed, 108 insertions(+), 94 deletions(-) -- 2.25.1