use URL.Path until TravisCI gets 1.5

Either we'll figure out how to get it added or they will.
This commit is contained in:
Jeff Hodges 2015-08-08 02:08:47 -07:00
parent 42a626f9fc
commit 7f44d22604
1 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,8 @@ func recombineURLForDB(dbConnect string) (string, error) {
dbConn += ":" + passwd
}
dbConn += "@tcp(" + dbURL.Host + ")"
return dbConn + dbURL.EscapedPath() + "?" + dsnVals.Encode(), nil
// TODO(jmhodges): should be dbURL.EscapedPath() but Travis doesn't have 1.5
return dbConn + dbURL.Path + "?" + dsnVals.Encode(), nil
}
// SetSQLDebug enables/disables GORP SQL-level Debugging