Skip to content

Commit

Permalink
Merge pull request #40 from uc-cdis/test/query-timeout
Browse files Browse the repository at this point in the history
test(query-timeout): testing adding query timeout to match rds timeout
  • Loading branch information
pieterlukasse authored Jun 17, 2022
2 parents 6d73be3 + 831ec28 commit b439eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/dsn.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func GenerateDsn(sourceConnectionString string) string {
username := sourceConnectionParts[7]
password := sourceConnectionParts[9]

dsn := fmt.Sprintf(dbVendor+"://%s:%s@%s:%s?database=%s",
dsn := fmt.Sprintf(dbVendor+"://%s:%s@%s:%s?database=%s?queryTimeout=600",
username,
url.QueryEscape(password),
host,
Expand Down

0 comments on commit b439eb1

Please sign in to comment.