Skip to content

Commit 4d66d0d

Browse files
committed
Disabling connection info display for interactive terminals
1 parent 568afe0 commit 4d66d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handler/handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ func (h *Handler) ChangePassword(user string) (string, error) {
971971

972972
// Version prints the database version information after a successful connection.
973973
func (h *Handler) Version(ctx context.Context) error {
974-
if env.Get("SHOW_HOST_INFORMATION") != "true" {
974+
if env.Get("SHOW_HOST_INFORMATION") != "true" || !h.IO().Interactive() {
975975
return nil
976976
}
977977
if h.db == nil {

0 commit comments

Comments
 (0)