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 8CF69246FA for ; Wed, 16 Jan 2019 08:13:26 -0500 (EST) 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 WmJ8SaoNXWXS for ; Wed, 16 Jan 2019 08:13:25 -0500 (EST) Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (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 41EA5245CE for ; Wed, 16 Jan 2019 08:13:25 -0500 (EST) From: Nikita Pettik Subject: [tarantool-patches] [PATCH 0/2] Compute derived collation for concatenation Date: Wed, 16 Jan 2019 16:13:18 +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/gh-3937-concatenation-collation Issue: https://github.com/tarantool/tarantool/issues/3937 According to ANSI concatenation operator should derive collation from its operands. This small patch-set implements this procedure according to rules described in SQL standard. Nikita Pettik (2): sql: refactor sql_expr_coll and sql_binary_compare_coll_seq functions sql: compute resulting collation for concatenation src/box/sql/expr.c | 125 +++++++++++++++++++++++++++++--------------- src/box/sql/select.c | 27 ++++++---- src/box/sql/sqliteInt.h | 14 +++-- src/box/sql/where.c | 56 ++++++++++---------- src/box/sql/whereexpr.c | 23 ++++---- test/sql/collation.result | 102 ++++++++++++++++++++++++++++++++++++ test/sql/collation.test.lua | 46 ++++++++++++++++ 7 files changed, 296 insertions(+), 97 deletions(-) -- 2.15.1