Skip to content

Commit

Permalink
added a readTimeout param to MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Aug 19, 2016
1 parent df0b8c6 commit 0485af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (m *MySQL) URL() string {
return c.URL
}

s := "%s:%s@(%s:%s)/%s?parseTime=true&multiStatements=true"
s := "%s:%s@(%s:%s)/%s?parseTime=true&multiStatements=true&readTimeout=1s"
return fmt.Sprintf(s, c.User, c.Password, c.Host, c.Port, c.Database)
}

Expand Down

0 comments on commit 0485af1

Please sign in to comment.