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

  • From: Vladislav Shpilevoy <v.shpilevoy@xxxxxxxxxxxxx>
  • To: Imeev Mergen <imeevma@xxxxxxxxxxxxx>, tarantool-patches@xxxxxxxxxxxxx
  • Date: Fri, 27 Jul 2018 16:08:16 +0300

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.

Other related posts: