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 216E8284FC for ; Mon, 18 Mar 2019 19:51:28 -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 u9J4zTg3QFzs for ; Mon, 18 Mar 2019 19:51:27 -0400 (EDT) Received: from smtp14.mail.ru (smtp14.mail.ru [94.100.181.95]) (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 41F9428144 for ; Mon, 18 Mar 2019 19:51:27 -0400 (EDT) From: Nikita Pettik Subject: [tarantool-patches] [PATCH 0/2] Fix wrong field count in bytecode for ANALYZE Date: Tue, 19 Mar 2019 02:51:19 +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/fix-analyze-makerecord First patch fixes obvious bug in VDBE bytecode for ANALYZE SQL statement. To prevent similar bugs in the future, second patch explicitly sets field count for _sql_stat1 and _sql_stat4 system spaces. Nikita Pettik (2): sql: fix OP_MakeRecord argument of ANALYZE bytecode schema: add exact field count to SQL stat spaces src/box/bootstrap.snap | Bin 1831 -> 1840 bytes src/box/lua/upgrade.lua | 29 ++++++++++++++- src/box/sql/analyze.c | 2 +- test/box-py/bootstrap.result | 6 ++-- test/box/access_misc.result | 4 +-- ...{sql-statN-index-drop.result => analyze.result} | 17 +++++++++ ...-statN-index-drop.test.lua => analyze.test.lua} | 6 ++++ test/sql/upgrade.result | 39 +++++++++++++++++++-- test/sql/upgrade.test.lua | 13 +++++++ 9 files changed, 107 insertions(+), 9 deletions(-) rename test/sql/{sql-statN-index-drop.result => analyze.result} (86%) rename test/sql/{sql-statN-index-drop.test.lua => analyze.test.lua} (91%) -- 2.15.1