From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp37.i.mail.ru (smtp37.i.mail.ru [94.100.177.97]) (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 795CD46970E for ; Tue, 31 Dec 2019 07:14:32 +0300 (MSK) Date: Tue, 31 Dec 2019 07:14:29 +0300 From: Mergen Imeev Message-ID: <20191231041429.GA29460@tarantool.org> References: <04a704b71ada5f801cd33d646dbb4e1e05d9bc9c.1577724051.git.imeevma@gmail.com> <20191230231122.GD29923@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191230231122.GD29923@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v2 3/9] sql: remove PRAGMA "sql_compound_select_limit" List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikita Pettik Cc: tarantool-patches@dev.tarantool.org Hi! Thank you for review! My answer and diff below. On Tue, Dec 31, 2019 at 01:11:22AM +0200, Nikita Pettik wrote: > On 30 Dec 19:43, imeevma@tarantool.org wrote: > > diff --git a/test/sql-tap/suite.ini b/test/sql-tap/suite.ini > > index 8f3c3ea..2e8411d 100644 > > --- a/test/sql-tap/suite.ini > > +++ b/test/sql-tap/suite.ini > > @@ -21,6 +21,7 @@ disabled = selectA.test.lua ; > > analyzeE.test.lua ; > > analyzeF.test.lua ; > > gh-3350-skip-scan.test.lua ; > > + gh2548-select-compound-limit.test.lua ; > > This test is not only about pragma itself. Please, don't disable > it but instead refactor. > Fixed. > > lua_libs = lua/sqltester.lua ../sql/lua/sql_tokenizer.lua ../box/lua/identifier.lua > > is_parallel = True > > -- > > 2.7.4 > > Diff: diff --git a/test/sql-tap/gh2548-select-compound-limit.test.lua b/test/sql-tap/gh2548-select-compound-limit.test.lua index f578870..76769d6 100755 --- a/test/sql-tap/gh2548-select-compound-limit.test.lua +++ b/test/sql-tap/gh2548-select-compound-limit.test.lua @@ -1,6 +1,6 @@ #!/usr/bin/env tarantool test = require("sqltester") -test:plan(14) +test:plan(9) -- box.cfg{wal_mode='none'} @@ -62,47 +62,4 @@ test:do_catchsql_test( -- }) -test:do_execsql_test( - "gh2548-select-compound-limit-3.1", [[ - pragma sql_compound_select_limit - ]], { - -- - 30 - -- - }) - -test:do_execsql_test( - "gh2548-select-compound-limit-3.2", [[ - pragma sql_compound_select_limit=31 - ]], { - -- - 31 - -- -}) - -test:do_execsql_test( - "gh2548-select-compound-limit-3.3", - select_string_last, { - -- - 0, 1 - -- - }) - -test:do_execsql_test( - "gh2548-select-compound-limit-3.4", [[ - pragma sql_compound_select_limit=0 - ]], { - -- - 0 - -- - }) - -test:do_execsql_test( - "gh2548-select-compound-limit-3.3", - select_string_last, { - -- - 0, 1 - -- - }) - test:finish_test() diff --git a/test/sql-tap/suite.ini b/test/sql-tap/suite.ini index 2e8411d..8f3c3ea 100644 --- a/test/sql-tap/suite.ini +++ b/test/sql-tap/suite.ini @@ -21,7 +21,6 @@ disabled = selectA.test.lua ; analyzeE.test.lua ; analyzeF.test.lua ; gh-3350-skip-scan.test.lua ; - gh2548-select-compound-limit.test.lua ; lua_libs = lua/sqltester.lua ../sql/lua/sql_tokenizer.lua ../box/lua/identifier.lua is_parallel = True