Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH 1/1] console: on '\set delimiter' return default delimiter
@ 2018-04-19 15:46 Vladislav Shpilevoy
  2018-04-20  5:16 ` [tarantool-patches] " Kirill Yukhin
  0 siblings, 1 reply; 4+ messages in thread
From: Vladislav Shpilevoy @ 2018-04-19 15:46 UTC (permalink / raw)
  To: tarantool-patches; +Cc: kyukhin

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)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-21  8:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19 15:46 [tarantool-patches] [PATCH 1/1] console: on '\set delimiter' return default delimiter Vladislav Shpilevoy
2018-04-20  5:16 ` [tarantool-patches] " Kirill Yukhin
2018-04-20  8:41   ` Vladislav Shpilevoy
2018-04-21  8:23     ` Kirill Yukhin

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