* [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
* [tarantool-patches] Re: [PATCH 1/1] console: on '\set delimiter' return default delimiter
2018-04-19 15:46 [tarantool-patches] [PATCH 1/1] console: on '\set delimiter' return default delimiter Vladislav Shpilevoy
@ 2018-04-20 5:16 ` Kirill Yukhin
2018-04-20 8:41 ` Vladislav Shpilevoy
0 siblings, 1 reply; 4+ messages in thread
From: Kirill Yukhin @ 2018-04-20 5:16 UTC (permalink / raw)
To: Vladislav Shpilevoy; +Cc: tarantool-patches
Hello Vlad,
On 19 апр 18:46, Vladislav Shpilevoy wrote:
> When a user changes delimiter, he can not return to a
> default one using '\set delimiter' - it is fixed here.
>
> Closed #3359
Is it possible to add a regression test?
-- Regards, Kirill Yukhin
^ permalink raw reply [flat|nested] 4+ messages in thread
* [tarantool-patches] Re: [PATCH 1/1] console: on '\set delimiter' return default delimiter
2018-04-20 5:16 ` [tarantool-patches] " Kirill Yukhin
@ 2018-04-20 8:41 ` Vladislav Shpilevoy
2018-04-21 8:23 ` Kirill Yukhin
0 siblings, 1 reply; 4+ messages in thread
From: Vladislav Shpilevoy @ 2018-04-20 8:41 UTC (permalink / raw)
To: Kirill Yukhin; +Cc: tarantool-patches
On 20/04/2018 08:16, Kirill Yukhin wrote:
> Hello Vlad,
> On 19 апр 18:46, Vladislav Shpilevoy wrote:
>> When a user changes delimiter, he can not return to a
>> default one using '\set delimiter' - it is fixed here.
>>
>> Closed #3359
>
> Is it possible to add a regression test?
I tried, and unfortunately it works in interactive console only, on that a test
can not be written. In remote console delimiter can not be changed.
>
> -- Regards, Kirill Yukhin
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [tarantool-patches] Re: [PATCH 1/1] console: on '\set delimiter' return default delimiter
2018-04-20 8:41 ` Vladislav Shpilevoy
@ 2018-04-21 8:23 ` Kirill Yukhin
0 siblings, 0 replies; 4+ messages in thread
From: Kirill Yukhin @ 2018-04-21 8:23 UTC (permalink / raw)
To: Vladislav Shpilevoy; +Cc: tarantool-patches
Hello Vlad,
On 20 апр 11:41, Vladislav Shpilevoy wrote:
> On 20/04/2018 08:16, Kirill Yukhin wrote:
> > Hello Vlad,
> > On 19 апр 18:46, Vladislav Shpilevoy wrote:
> > > When a user changes delimiter, he can not return to a
> > > default one using '\set delimiter' - it is fixed here.
> > >
> > > Closed #3359
> >
> > Is it possible to add a regression test?
>
> I tried, and unfortunately it works in interactive console only, on that a test
> can not be written. In remote console delimiter can not be changed.
Okay then. I've committed your patch to 2.1 branch
>
> >
> > -- Regards, Kirill Yukhin
> >
--
Regards, Kirill Yukhin
^ 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