From 7356f2959f5dba172637514b0d1c467e78130db8 Mon Sep 17 00:00:00 2001 From: sqshq Date: Sat, 22 Jun 2019 20:18:06 -0400 Subject: [PATCH] restore transform for basic interactive shell --- README.md | 2 +- data/int_shell.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4e2cb07..0b7467d 100644 --- a/README.md +++ b/README.md @@ -259,7 +259,7 @@ sparklines: ## Real-world recipes ### Databases -The following are different databases connection examples. Interactive shell (init script) usage is recommended to establish connection only once and then reuse it during sampling. +The following are different database connection examples. Interactive shell (init script) usage is recommended to establish connection only once and then reuse it during sampling.
MySQL diff --git a/data/int_shell.go b/data/int_shell.go index f42d9eb..ce539f8 100644 --- a/data/int_shell.go +++ b/data/int_shell.go @@ -106,7 +106,7 @@ func (s *BasicInteractiveShell) execute() (string, error) { if errorText.Len() > 0 { return "", errors.New(errorText.String()) } else { - return resultText.String(), nil + return s.item.transform(resultText.String()) } } }