[tarantool-patches] [PATCH 0/2] Fix border case in float-int comparison in SQL

Nikita Pettik korablev at tarantool.org
Wed Aug 7 01:02:13 MSK 2019


Branch: https://github.com/tarantool/tarantool/tree/np/sql-fix-float-int-cmp

This patch makes SQL utilize the same routine to compare integers
with floating point values as in NoSQL.

Nikita Pettik (2):
  Move mp_compare_double_uint64() to trivia.h
  sql: use double_compare_uint64() for int<->float cmp

 src/box/sql/vdbeaux.c    | 74 ++++++++++----------------------------------
 src/box/tuple_compare.cc | 80 ++----------------------------------------------
 src/lib/core/util.c      | 63 ++++++++++++++++++++++++++++++++++++++
 src/trivia/util.h        | 14 +++++++++
 test/sql/types.result    |  2 +-
 5 files changed, 97 insertions(+), 136 deletions(-)

-- 
2.15.1





More information about the Tarantool-patches mailing list