From c440112d440112e819d17f8d6997f3b41882edac Mon Sep 17 00:00:00 2001 From: Brandon Bodnar <33429657+brandonbodnar-wk@users.noreply.github.com> Date: Thu, 31 Jan 2019 17:23:19 -0600 Subject: [PATCH] Explain default setting for TLS param in DSN --- go/mysql/connection.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/mysql/connection.go b/go/mysql/connection.go index 7fa8268..742ca7e 100644 --- a/go/mysql/connection.go +++ b/go/mysql/connection.go @@ -91,6 +91,8 @@ func (this *ConnectionConfig) GetDBUri(databaseName string) string { hostname = fmt.Sprintf("[%s]", hostname) } interpolateParams := true + // go-mysql-driver defaults to false if tls param is not provided; explicitly setting here to + // simplify construction of the DSN below. tlsOption := "false" if this.tlsConfig != nil { tlsOption = this.Key.StringCode()