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 BDD30290A4 for ; Wed, 20 Mar 2019 07:11:57 -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 PNXkWoJ69CNj for ; Wed, 20 Mar 2019 07:11:57 -0400 (EDT) Received: from smtp45.i.mail.ru (smtp45.i.mail.ru [94.100.177.105]) (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 6EFF62A4D9 for ; Wed, 20 Mar 2019 07:11:57 -0400 (EDT) From: Ivan Koptelov Subject: [tarantool-patches] [PATCH 0/2] sql: add better coll. determination & position func. Date: Wed, 20 Mar 2019 14:11:39 +0300 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: korablev@tarantool.org, Ivan Koptelov There are two patches in this series. First one enhances collation determination for function arguments (e.g. for cases, when function arguments have different collations). Second one renames instr() to position() and swaps arguments order. Also after the second patch both arguments must have the same type, which should be either TEXT or BLOB. Branch https://github.com/tarantool/tarantool/tree/sudobobo/gh-3933-add-position-func Issue https://github.com/tarantool/tarantool/issues/3933 Ivan Koptelov (2): sql: add better collation determination in functions sql: rename instr to position & add collation usage src/box/sql/expr.c | 65 ++- src/box/sql/func.c | 157 ++++-- src/box/sql/sqlInt.h | 8 +- src/box/sql/vdbeInt.h | 9 + test/sql-tap/func.test.lua | 10 +- test/sql-tap/func5.test.lua | 4 +- test/sql-tap/instr.test.lua | 706 ------------------------- test/sql-tap/position.test.lua | 905 +++++++++++++++++++++++++++++++++ test/sql-tap/with1.test.lua | 4 +- 9 files changed, 1106 insertions(+), 762 deletions(-) delete mode 100755 test/sql-tap/instr.test.lua create mode 100755 test/sql-tap/position.test.lua -- 2.20.1