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 5C07E6EC57; Mon, 4 Oct 2021 16:30:20 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5C07E6EC57 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1633354220; bh=/kIJ5GHcIHE3is9LgIFtDPlDOw+BGyXk25F6wOliKWo=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=Sft3XG9+1t6U/KbgWYD3Oa4aJXh4402hbbDl4lmjmoV5Dimg1urIEnV8B0iuvQ1Pg vFSxKDL9chACSgX3LbELC5Wrn1XFr0DPUOhlUc/hAboU9payhloKxwdmozBFY9c6H9 t4papyiZFrvulUFsJVW0jJAB414xy4BhR9dSuuTA= 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 683886EC56 for ; Mon, 4 Oct 2021 16:30:18 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 683886EC56 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1mXO2r-0004Dj-OJ; Mon, 04 Oct 2021 16:30:18 +0300 To: v.shpilevoy@tarantool.org Cc: tarantool-patches@dev.tarantool.org Date: Mon, 4 Oct 2021 16:30:17 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD96A58C36AA2E996498302BFE8288A953FFF2204EAAF1B1FDF182A05F5380850402E83A1D8FF46F7E7CB3DCC23D0608231B13693EF801A4C91700B2E2D87F0BA07 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7922D113DFDC6D5A3EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637775FFFCA96730EC9EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BBCA57AF85F7723F261B34A28EE81C8D2D80B64ED0EAE6A55CC7F00164DA146DAFE8445B8C89999728AA50765F7900637CAEE156C82D3D7D9389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC82FFDA4F57982C5F4F6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8B953A8A48A05D51F175ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C80CE368667DD8FDEE4E4896F3C89DC383A6A34229F4B45D19C2B6934AE262D3EE7EAB7254005DCED556CBE7F905700A49510FB958DCE06DB6ED91DBE5ABE359A805C47957401F481B936CB490224F2464EEA7BD89490CAC0EDDA962BC3F61961 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34F38194B2C99DC1280D231EE79D130D00239119BBE282195A42B279DFBB887D1F1C37CAFC9AECE4C81D7E09C32AA3244C2BD2EBC5BBEB0566749EC0E0DB6001CDB4DF56057A86259F729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj+1ww+tpaZeqbo5fCoCeCWw== X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5D2DB763372C282E7CFD7784F69DC2D89083D72C36FC87018B9F80AB2734326CD2FB559BB5D741EB96352A0ABBE4FDA4210A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v1 0/3] Fix some bugs with DECIMAL 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 fixes three bugs with DECIMAL. https://github.com/tarantool/tarantool/issues/6485 https://github.com/tarantool/tarantool/tree/imeevma/gh-6485-fix-bugs-with-decimal Mergen Imeev (3): sql: fix truncation of DECIMAL in implicit cast sql: fix cast of small negative DECIMAL to INTEGER sql: do not truncate DECIMAL in LIMIT and OFFSET .../unreleased/gh-6485-bug-of-decimal.md | 8 +++ src/box/sql/mem.c | 16 +++--- test/sql-tap/gh-6485-bugs-in-decimal.test.lua | 57 +++++++++++++++++++ 3 files changed, 74 insertions(+), 7 deletions(-) create mode 100644 changelogs/unreleased/gh-6485-bug-of-decimal.md create mode 100755 test/sql-tap/gh-6485-bugs-in-decimal.test.lua -- 2.25.1