From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (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 4C52246970E for ; Mon, 30 Dec 2019 16:01:24 +0300 (MSK) From: imeevma@tarantool.org Date: Mon, 30 Dec 2019 16:01:23 +0300 Message-Id: Subject: [Tarantool-patches] [PATCH v2 0/3] sql: fix NUMBER type List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: korablev@tarantool.org Cc: tarantool-patches@dev.tarantool.org This patch-set makes number to be union of UNSIGNED, INTEGER and DOUBLE numeric types. Also it fixes couple of small bugs of DOUBLE type. https://github.com/tarantool/tarantool/issues/4233 https://github.com/tarantool/tarantool/tree/imeevma/gh-4233-fix-number-field-type-in-sql Mergen Imeev (3): sql: allow conversion of numeric binary values to DOUBLE sql: fix typeof() for double values sql: make NUMBER to be union of SQL numeric types src/box/sql/func.c | 2 +- src/box/sql/vdbe.c | 15 +--- src/box/sql/vdbeInt.h | 1 - src/box/sql/vdbemem.c | 46 ++----------- test/sql-tap/cast.test.lua | 44 ++++++------ test/sql-tap/check.test.lua | 4 +- test/sql-tap/e_select1.test.lua | 2 +- test/sql-tap/func.test.lua | 4 +- test/sql-tap/numcast.test.lua | 128 ++++++++++++++++++++++++++++++++++- test/sql-tap/select3.test.lua | 8 +-- test/sql-tap/sort.test.lua | 12 ++-- test/sql-tap/tkt-80e031a00f.test.lua | 8 +-- test/sql-tap/tkt-91e2e8ba6f.test.lua | 12 ++-- test/sql/integer-overflow.result | 2 +- test/sql/types.result | 9 ++- test/sql/types.test.lua | 9 +++ 16 files changed, 198 insertions(+), 108 deletions(-) -- 2.7.4