[Tarantool-patches] [PATCH v2 0/3] sql: fix NUMBER type

imeevma at tarantool.org imeevma at tarantool.org
Mon Dec 30 16:01:23 MSK 2019


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



More information about the Tarantool-patches mailing list