Tarantool development patches archive
 help / color / mirror / Atom feed
* [PATCH 00/13] sql: support -2^63 .. 2^64-1 integer type
@ 2019-03-15 15:45 Stanislav Zudin
  2019-03-15 15:45 ` [PATCH 01/13] sql: Convert big integers from string Stanislav Zudin
                   ` (13 more replies)
  0 siblings, 14 replies; 43+ messages in thread
From: Stanislav Zudin @ 2019-03-15 15:45 UTC (permalink / raw)
  To: tarantool-patches, vdavydov.dev; +Cc: Stanislav Zudin

The patch enables support of big integers in the range [2^63, 2^64-1].
Conversion functions use return value to inform about value
they return - signed integer in the range [-2^63,2^63-1] or 
unsigned integer in the range [2^63, 2^64 -1].
The changes affect sql processing, VDBE, arithmetic functions and
aggregate functions.

Issue: https://github.com/tarantool/tarantool/issues/3810
Branch: https://github.com/tarantool/tarantool/tree/stanztt/gh-3810-sql-uint64-support

Stanislav Zudin (13):
  sql: Convert big integers from string
  sql: make VDBE recognize big integers
  sql: removes unused function.
  sql: support big integers within sql binding
  sql: removes redundant function.
  sql: aux functions to support big integers
  sql: arithmetic functions support big integers
  sql: aggregate sql functions support big int
  sql: fixes errors
  sql: fixes an error in sqlSubInt64
  sql: fixes an error in string to int64 conversion
  sql: fixes an error in uint64 to double casting
  sql: support -2^63 .. 2^64-1 integer type

 src/box/execute.c                        |  19 +-
 src/box/lua/lua_sql.c                    |   3 +
 src/box/lua/sql.c                        |   3 +
 src/box/sql/build.c                      |   4 +-
 src/box/sql/expr.c                       |  26 +-
 src/box/sql/func.c                       |  42 ++-
 src/box/sql/main.c                       |  16 -
 src/box/sql/sqlInt.h                     |  91 +++--
 src/box/sql/util.c                       | 401 +++++++++++++++--------
 src/box/sql/vdbe.c                       |  65 ++--
 src/box/sql/vdbe.h                       |   3 +-
 src/box/sql/vdbeInt.h                    |   9 +-
 src/box/sql/vdbeapi.c                    |  73 ++++-
 src/box/sql/vdbeaux.c                    |  12 +-
 src/box/sql/vdbemem.c                    |  17 +-
 test/sql-tap/func.test.lua               |   6 +-
 test/sql-tap/hexlit.test.lua             |   6 +-
 test/sql/gh-2347-max-int-literals.result |   2 +-
 test/sql/integer-overflow.result         |  10 +-
 test/sql/iproto.result                   |  11 +-
 test/sql/iproto.test.lua                 |   5 +-
 21 files changed, 554 insertions(+), 270 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2019-04-02  7:57 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-15 15:45 [PATCH 00/13] sql: support -2^63 .. 2^64-1 integer type Stanislav Zudin
2019-03-15 15:45 ` [PATCH 01/13] sql: Convert big integers from string Stanislav Zudin
2019-03-25 15:10   ` [tarantool-patches] " n.pettik
2019-04-01 20:39     ` Stanislav Zudin
2019-04-02  7:27     ` Konstantin Osipov
2019-03-15 15:45 ` [PATCH 02/13] sql: make VDBE recognize big integers Stanislav Zudin
2019-03-25 15:11   ` [tarantool-patches] " n.pettik
2019-04-01 20:42     ` Stanislav Zudin
2019-04-02  7:38   ` [tarantool-patches] " Konstantin Osipov
2019-03-15 15:45 ` [PATCH 03/13] sql: removes unused function Stanislav Zudin
2019-03-25 15:11   ` [tarantool-patches] " n.pettik
2019-04-01 20:39     ` Stanislav Zudin
2019-03-15 15:45 ` [PATCH 04/13] sql: support big integers within sql binding Stanislav Zudin
2019-03-25 15:12   ` [tarantool-patches] " n.pettik
2019-04-01 20:42     ` Stanislav Zudin
2019-04-02  7:46     ` Konstantin Osipov
2019-04-02  7:44   ` [tarantool-patches] " Konstantin Osipov
2019-03-15 15:45 ` [PATCH 05/13] sql: removes redundant function Stanislav Zudin
2019-03-25 15:12   ` [tarantool-patches] " n.pettik
2019-03-15 15:45 ` [PATCH 06/13] sql: aux functions to support big integers Stanislav Zudin
2019-03-25 15:13   ` [tarantool-patches] " n.pettik
2019-03-15 15:45 ` [PATCH 07/13] sql: arithmetic functions " Stanislav Zudin
2019-03-25 15:13   ` [tarantool-patches] " n.pettik
2019-04-01 20:43     ` Stanislav Zudin
2019-04-02  7:54       ` Konstantin Osipov
2019-04-02  7:52     ` Konstantin Osipov
2019-03-15 15:45 ` [PATCH 08/13] sql: aggregate sql functions support big int Stanislav Zudin
2019-03-25 15:13   ` [tarantool-patches] " n.pettik
2019-04-01 20:43     ` Stanislav Zudin
2019-04-02  7:57   ` [tarantool-patches] " Konstantin Osipov
2019-03-15 15:45 ` [PATCH 09/13] sql: fixes errors Stanislav Zudin
2019-03-25 15:14   ` [tarantool-patches] " n.pettik
2019-03-15 15:45 ` [PATCH 10/13] sql: fixes an error in sqlSubInt64 Stanislav Zudin
2019-03-25 15:14   ` [tarantool-patches] " n.pettik
2019-03-15 15:45 ` [PATCH 11/13] sql: fixes an error in string to int64 conversion Stanislav Zudin
2019-03-25 15:14   ` [tarantool-patches] " n.pettik
2019-03-15 15:45 ` [PATCH 12/13] sql: fixes an error in uint64 to double casting Stanislav Zudin
2019-03-25 15:15   ` [tarantool-patches] " n.pettik
2019-03-15 15:45 ` [PATCH 13/13] sql: support -2^63 .. 2^64-1 integer type Stanislav Zudin
2019-03-25 15:25   ` [tarantool-patches] " n.pettik
2019-04-01 20:44     ` Stanislav Zudin
2019-03-25 15:10 ` [tarantool-patches] Re: [PATCH 00/13] " n.pettik
2019-04-01 20:38   ` Stanislav Zudin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox