From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id B6CC64429A8 for ; Mon, 28 Oct 2019 00:29:44 +0300 (MSK) From: Vladislav Shpilevoy Date: Sun, 27 Oct 2019 22:35:06 +0100 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/3] Booleans and lower vs upper List-Id: Tarantool development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, korablev@tarantool.org Cc: tarantool-patches@freelists.org The patchset contains 3 independent commits fixing some minor things in SQL. The commit messages below speak for themselves, everything is trivial. This patchset is mostly about problems mentioned in #4462, but does not close it. Because I don't know to fix the last problem yet, and don't know whether I will do it. Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-4462-sql-boolean-bugs Issue: https://github.com/tarantool/tarantool/issues/4462 Vladislav Shpilevoy (3): sql: LENGTH function accepts boolean sql: CAST( AS TEXT) returns lowercase sql: make type string case lower everywhere src/box/sql/delete.c | 2 +- src/box/sql/func.c | 12 +- src/box/sql/insert.c | 2 +- src/box/sql/pragma.c | 4 +- src/box/sql/pragma.h | 92 +++--- src/box/sql/prepare.c | 24 +- src/box/sql/update.c | 2 +- src/box/sql/vdbe.c | 16 +- src/box/sql/vdbeapi.c | 16 +- src/box/sql/vdbemem.c | 2 +- test/sql-tap/func.test.lua | 2 +- test/sql-tap/position.test.lua | 16 +- test/sql-tap/sql-errors.test.lua | 4 +- test/sql/boolean.result | 526 ++++++++++++++++--------------- test/sql/boolean.test.sql | 2 + test/sql/iproto.result | 48 +-- test/sql/row-count.result | 10 +- test/sql/sql-debug.result | 6 +- test/sql/types.result | 42 +-- 19 files changed, 417 insertions(+), 411 deletions(-) -- 2.21.0 (Apple Git-122)