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 8E7666ECE3; Tue, 19 Oct 2021 09:19:47 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 8E7666ECE3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1634624387; bh=5EENxyclMwEgwPiUTMj1pd2z6uzZPpvdQXtJ6LFjRvw=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=g7GmbI6QV0DDhA+slksSVxAsXfFeZbm/H47Ql8qYuiPANAFEykJlTfsNjTtA0IrPH mXe7nZctNqsa9rt3RTgDT59PG7LC/qL3F+wPC0/2TUxWx+mYOPMv629A6p+1NJFnUC mkUo2qmR2xPSSHUdxeO6A6AjhHcOByG20XUwHDXQ= 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 492796ECE3 for ; Tue, 19 Oct 2021 09:19:46 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 492796ECE3 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1mciTR-0003h2-4e; Tue, 19 Oct 2021 09:19:45 +0300 To: kyukhin@tarantool.org Cc: tarantool-patches@dev.tarantool.org Date: Tue, 19 Oct 2021 09:19:44 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD9C7814344C8C501C83238E3156CE19B78C95C7AD4390B7974182A05F5380850403631B93A3ED88C0D15100D5B97221DB4D5206B7DAA89A135246299CCE3A4B586 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7081BBE264C6D7F42EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637E1AAA91777E61F958638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8AF11389345A21C8932CF3BA8EAFA4583117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC8C7ADC89C2F0B2A5A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD18F04B652EEC242312D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B62CFFCC7B69C47339089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CDA625C6CE8BBA1B9CADE1CB17E8CF295641B3E4DE3D0D79E9C2B6934AE262D3EE7EAB7254005DCED556CBE7F905700A49510FB958DCE06DB6ED91DBE5ABE359A48600B0EAD68145B2272C4C079A4C8AD93EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34EA882B598A2098118C9695EED614941701FD14E344FDA1C8610FE2A402EB343240338DCD4BB2FFA31D7E09C32AA3244CD0CB2B380D60FB76B0A82B0280D1FFC6A995755A1445935E729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXiAtnt/X/yfzTGcZETb/dyN X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5DBB0B81A89B2218BAE7AA60DE3C0428E983D72C36FC87018B9F80AB2734326CD2FB559BB5D741EB96352A0ABBE4FDA4210A04DAD6CC59E33667EA787935ED9F1B 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 in SQL. 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/engine.cfg | 1 + test/sql-tap/gh-6485-bugs-in-decimal.test.lua | 57 +++++++++++++++++++ 4 files changed, 75 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