Tarantool development patches archive
 help / color / mirror / Atom feed
From: imeevma@tarantool.org
To: korablev@tarantool.org
Cc: tarantool-patches@dev.tarantool.org
Subject: [Tarantool-patches] [PATCH v3 0/2] Allow to convert big real values to integer
Date: Mon,  9 Dec 2019 16:34:12 +0300	[thread overview]
Message-ID: <cover.1575898091.git.imeevma@gmail.com> (raw)

This patch-set fixes a bug that prevented the conversion of real
values that are greater than INT64_MAX and less than UINT64_MAX to
INTEGER and UNSIGNED.

https://github.com/tarantool/tarantool/issues/4526
https://github.com/tarantool/tarantool/tree/imeevma/gh-4526-big-float-to-int-conversation

Mergen Imeev (2):
  sql: refactor sqlVdbeMemIntegerify() function
  sql: allow to convert big real values to integer

 src/box/sql/vdbe.c                 | 13 +++---
 src/box/sql/vdbeInt.h              |  2 +-
 src/box/sql/vdbemem.c              | 22 +++++-----
 test/sql-tap/numcast.test.lua      | 83 +++++++++++++++++++++++++++++++++++++-
 test/sql/integer-overflow.result   | 12 +++---
 test/sql/integer-overflow.test.lua | 10 ++---
 6 files changed, 113 insertions(+), 29 deletions(-)

-- 
2.7.4

             reply	other threads:[~2019-12-09 13:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-09 13:34 imeevma [this message]
2019-12-09 13:34 ` [Tarantool-patches] [PATCH v3 1/2] sql: refactor sqlVdbeMemIntegerify() function imeevma
2019-12-09 13:34 ` [Tarantool-patches] [PATCH v3 2/2] sql: allow to convert big real values to integer imeevma
2019-12-11 14:23 ` [Tarantool-patches] [PATCH v3 0/2] Allow " Nikita Pettik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1575898091.git.imeevma@gmail.com \
    --to=imeevma@tarantool.org \
    --cc=korablev@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v3 0/2] Allow to convert big real values to integer' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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