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 4B5E4240E3 for ; Sat, 15 Dec 2018 06:54:21 -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 KPrBqS_nifwH for ; Sat, 15 Dec 2018 06:54:21 -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 2076723F76 for ; Sat, 15 Dec 2018 06:54:15 -0500 (EST) From: imeevma@tarantool.org Subject: [tarantool-patches] [PATCH v2 0/6] sql: set column types for EXPLAIN and PRAGMA Date: Sat, 15 Dec 2018 14:51:31 +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: v.shpilevoy@tarantool.org, tarantool-patches@freelists.org This patch-set defines the types for the result columns of EXPLAIN and PRAGMA commands. In addition, it fixes some problems of the PRAGMA commands that have something to do with their result. https://github.com/tarantool/tarantool/issues/3832 https://github.com/tarantool/tarantool/tree/imeevma/gh-3832-no-column-types Changes in second version: - Fixes for problems in PRAGMA commands that have something to do with their result. - Refactoring. v1: https://www.freelists.org/post/tarantool-patches/PATCH-v1-11-sql-set-column-types-for-EXPLAIN-and-PRAGMA Mergen Imeev (6): sql: remove unnecessary macros from pragma.* sql: fix "PRAGMA parser_trace" result sql: Show currently set sql_default_engine sql: fix "PRAGMA case_sensitive_like" result sql: 'PRAGMA' result in Tarantool format sql: set column types for EXPLAIN and PRAGMA src/box/execute.c | 5 +- src/box/sql/pragma.c | 179 ++++++++++++++----------- src/box/sql/pragma.h | 252 ++++++++++++++++++++++------------- src/box/sql/prepare.c | 52 ++++++-- src/box/sql/sqliteInt.h | 4 + test/sql-tap/gh-2367-pragma.test.lua | 35 +++-- test/sql/errinj.result | 19 +++ test/sql/errinj.test.lua | 16 +++ test/sql/iproto.result | 69 ++++++++++ test/sql/iproto.test.lua | 18 ++- test/sql/misc.result | 29 ++++ test/sql/misc.test.lua | 18 +++ 12 files changed, 501 insertions(+), 195 deletions(-) -- 2.7.4