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 8510C213E5 for ; Thu, 19 Apr 2018 11:46:30 -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 2jo6fgk5JfXv for ; Thu, 19 Apr 2018 11:46:30 -0400 (EDT) Received: from smtp52.i.mail.ru (smtp52.i.mail.ru [94.100.177.112]) (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 4167D213E3 for ; Thu, 19 Apr 2018 11:46:29 -0400 (EDT) From: Vladislav Shpilevoy Subject: [tarantool-patches] [PATCH 1/1] console: on '\set delimiter' return default delimiter Date: Thu, 19 Apr 2018 18:46:25 +0300 Message-Id: <9afa5b594967ecf64782cb75ead2cdd29f9db59e.1524152703.git.v.shpilevoy@tarantool.org> 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: kyukhin@tarantool.org When a user changes delimiter, he can not return to a default one using '\set delimiter' - it is fixed here. Closed #3359 --- Issue: https://github.com/tarantool/tarantool/issues/3359 Branch: https://github.com/tarantool/tarantool/tree/gh-3359-fix-set-delimiter src/box/lua/console.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/box/lua/console.lua b/src/box/lua/console.lua index 753429967..63ec34078 100644 --- a/src/box/lua/console.lua +++ b/src/box/lua/console.lua @@ -74,6 +74,7 @@ local function set_delimiter(storage, value) if console ~= nil and console.delimiter == '$EOF$' then return error('Can not install delimiter for net box sessions') end + value = value or '' return delimiter(value) end -- 2.15.1 (Apple Git-101)