Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: tarantool-patches@freelists.org
Cc: kyukhin@tarantool.org
Subject: [tarantool-patches] [PATCH 1/1] console: on '\set delimiter' return default delimiter
Date: Thu, 19 Apr 2018 18:46:25 +0300	[thread overview]
Message-ID: <9afa5b594967ecf64782cb75ead2cdd29f9db59e.1524152703.git.v.shpilevoy@tarantool.org> (raw)

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)

             reply	other threads:[~2018-04-19 15:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-19 15:46 Vladislav Shpilevoy [this message]
2018-04-20  5:16 ` [tarantool-patches] " Kirill Yukhin
2018-04-20  8:41   ` Vladislav Shpilevoy
2018-04-21  8:23     ` Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9afa5b594967ecf64782cb75ead2cdd29f9db59e.1524152703.git.v.shpilevoy@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=kyukhin@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [tarantool-patches] [PATCH 1/1] console: on '\''\set delimiter'\'' return default delimiter' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox