[tarantool-patches] Re: [PATCH v1 1/1] Tarantoolctl "enter" with set language

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Fri Jul 27 16:08:16 MSK 2018


Hi! Thanks for the fixes!


> diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in
> index 2dd5d74..ef9da2f 100755
> --- a/extra/dist/tarantoolctl.in
> +++ b/extra/dist/tarantoolctl.in
>           log.error("Can't connect to %s (%s)", console_sock_path, errno.strerror())
> @@ -644,7 +659,9 @@ local function enter()
>           console_sock, TIMEOUT_INFINITY
>       )
> 
> -    console.on_start(function(self) self:eval(cmd) end)
> +    local cmd_connect = string.format("\\set language %s", language)

1. It is not cmd_connect, it is cmd_language. Connect cmd is above.

> +
> +    console.on_start(function(self) self:eval(cmd) self:eval(cmd_connect) end)
>       console.on_client_disconnect(function(self) self.running = false end)
>       console.start()
>       return 0

2. Please, write a documentation bot request for the new option.




More information about the Tarantool-patches mailing list