From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B263422E1C for ; Tue, 6 Aug 2019 18:02:20 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d_75p-2QNdbs for ; Tue, 6 Aug 2019 18:02:20 -0400 (EDT) Received: from smtp32.i.mail.ru (smtp32.i.mail.ru [94.100.177.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id EFBDC22DB6 for ; Tue, 6 Aug 2019 18:02:19 -0400 (EDT) From: Nikita Pettik Subject: [tarantool-patches] [PATCH 0/2] Fix border case in float-int comparison in SQL Date: Wed, 7 Aug 2019 01:02:13 +0300 Message-Id: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: v.shpilevoy@tarantool.org, Nikita Pettik 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