[tarantool-patches] [PATCH 1/1] console: on '\set delimiter' return default delimiter
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Thu Apr 19 18:46:25 MSK 2018
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)
More information about the Tarantool-patches
mailing list