From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 955CE85DED; Thu, 21 Jan 2021 15:50:46 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 955CE85DED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1611233446; bh=ZYC2J20DYmFV27UEUmIOS5gZR8QaSJnK7nQBomvuAEw=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=AfklSoGVBr88pYSIKkLmNIF031CTlqcREd/krgmuGOzQg7Hok3Ioecb8GY/94Kx4Q Lkotpch6MVOJQScrttgJCDJ6DKnKUrlGHk71A+KcQy2/fM8R9N+hLqC/EW+r4s6nxz LnaTfVy4eXCFUfZMK87xRlUYdRDkJXqQG6nrS3Es= 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 0F73F85DED for ; Thu, 21 Jan 2021 15:50:19 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0F73F85DED Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1l2ZPl-0007wD-UQ; Thu, 21 Jan 2021 15:50:18 +0300 To: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org Date: Thu, 21 Jan 2021 15:49:53 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD9FAB20BF8F0759036E9D016CAEA9DE5620EF9C858B2894E1E182A05F538085040458562CE7DEA53865315C906E1D30C5D493174D17685B4019B589F97F7219025 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7370F4F695FFFC24BEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637317AD06F2A8D0AEF8638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FCEB69F05919F51CB411CD80C83F6AF655153EC6818B774D1F389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C07E7E81EEA8A9722B8941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B68424CA1AAF98A6958941B15DA834481F9449624AB7ADAF3735872C767BF85DA29E625A9149C048EE1B544F03EFBC4D578CCB3ED2A1DE23044AD6D5ED66289B524E70A05D1297E1BB35872C767BF85DA227C277FBC8AE2E8BDB96E037C9407EA075ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85D9B7C4F32B44FF57285124B2A10EEC6C00306258E7E6ABB4E4A6367B16DE6309 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C2549B6A8B600A67A1568E92531557581197955D2AE6400379C2B6934AE262D3EE7EAB7254005DCED7532B743992DF240BDC6A1CF3F042BAD6DF99611D93F60EF6EA1BA7CA28B4A74699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34BC3EEE75EF3BACCF427C7444647124EA1A0F48C455DE6A5C22E71A2B42D62173A689B9BB138C1CB01D7E09C32AA3244CA0511B21FAAB634C9770C01E37DDCCD93FD9C8CA1B0515E0927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojYT//mZRaUegILOa57YfAHQ== X-Mailru-Sender: 689FA8AB762F73936BC43F508A0638224624C40A486A62B4818067B740B26F79DD788429FD8613638ED9BB8B05EE7B3AFB559BB5D741EB96D19CD4E7312BAA970A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v8 01/14] test: fix luacheck warnings in test/sql X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Bronnikov via Tarantool-patches Reply-To: sergeyb@tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" From: Sergey Bronnikov Closes #5463 Reviewed-by: Vladislav Shpilevoy Reviewed-by: Igor Munkin --- .luacheckrc | 2 +- test/sql/lua/sql_tokenizer.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index b427f6475..81aa61a2b 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -38,7 +38,7 @@ exclude_files = { "test/luajit-tap/**/*.lua", "test/replication/**/*.lua", "test/replication-py/**/*.lua", - "test/sql/**/*.lua", + "test/sql/*.test.lua", "test/swim/**/*.lua", "test/var/**/*.lua", "test/vinyl/*.test.lua", diff --git a/test/sql/lua/sql_tokenizer.lua b/test/sql/lua/sql_tokenizer.lua index 9922d792d..ffe4fb4e8 100644 --- a/test/sql/lua/sql_tokenizer.lua +++ b/test/sql/lua/sql_tokenizer.lua @@ -134,7 +134,7 @@ end -- @retval Token type. If the rest of the SQL request consists of -- spaces and comments, then return TK_EMPTY. local function get_next_token(context) - local c = '' + local c repeat local i = context.offset c = context.sql:sub(i, i) -- 2.25.1