From 28ba465c8aa689d9772325ee511723a74f3fe2ba Mon Sep 17 00:00:00 2001 From: Azareal Date: Wed, 29 Aug 2018 13:31:52 +1000 Subject: [PATCH] I'll try anything now o.o --- query_gen/lib/mysql.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/query_gen/lib/mysql.go b/query_gen/lib/mysql.go index cbfa0025..acb59b94 100644 --- a/query_gen/lib/mysql.go +++ b/query_gen/lib/mysql.go @@ -5,7 +5,6 @@ import ( "database/sql" "errors" "fmt" - "log" "runtime" "strconv" "strings" @@ -66,11 +65,13 @@ func (adapter *MysqlAdapter) BuildConn(config map[string]string) (*sql.DB, error } db, err := sql.Open("mysql", config["username"]+dbpassword+"@unix("+dbsocket+")/"+config["name"]+"?collation="+dbCollation+"&parseTime=true") - log.Print("err: ", err) if err == nil { // Make sure that the connection is alive return db, db.Ping() } + + // Am I supposed to do this? o.O + db, err = nil, nil } // Open the database connection