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 B3B6020B12 for ; Tue, 19 Feb 2019 03:28:28 -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 r4vdO0_u7mFg for ; Tue, 19 Feb 2019 03:28:28 -0500 (EST) Received: from smtp40.i.mail.ru (smtp40.i.mail.ru [94.100.177.100]) (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 6A39520AF1 for ; Tue, 19 Feb 2019 03:28:28 -0500 (EST) From: Nikita Pettik Subject: [tarantool-patches] [PATCH 0/3] Concatenation operator type fixes Date: Tue, 19 Feb 2019 11:28:20 +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 This patch makes concatenation operator follow ANSI rules. For now, only operands of string-like types (TEXT or BLOB) are accepted. What is more, fixed resulting type of concatenation: if both operands are of BLOB type, then the resulting value is of BLOB value too. Branch: https://github.com/tarantool/tarantool/tree/np/gh-3544-fix-randomblob-type Issue: https://github.com/tarantool/tarantool/issues/3544 Nikita Pettik (3): sql: fix value of mask to map VDBE memory type sql: allow only string-like arguments for concatenation sql: fix resulting type for concatenation operator src/box/errcode.h | 1 + src/box/sql/vdbe.c | 59 ++++++++++++++++++++++++++++++++++++++--- src/box/sql/vdbeInt.h | 9 +++++++ src/box/sql/vdbeapi.c | 2 +- test/box/misc.result | 1 + test/sql-tap/autoinc.test.lua | 12 ++++----- test/sql-tap/e_select1.test.lua | 4 +-- test/sql-tap/func.test.lua | 4 +-- test/sql-tap/sort.test.lua | 6 ++--- test/sql-tap/tkt2192.test.lua | 4 +-- test/sql-tap/trigger5.test.lua | 4 +-- test/sql/types.result | 42 +++++++++++++++++++++++++++++ test/sql/types.test.lua | 16 +++++++++++ 13 files changed, 143 insertions(+), 21 deletions(-) -- 2.15.1