Skip to content

Commit ed0fc1c

Browse files
author
Shlomi Noach
authored
Merge pull request #481 from github/autocommit
gh-ost uses autocommit=1 for all connections
2 parents b905022 + f2cd598 commit ed0fc1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

go/mysql/connection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ func (this *ConnectionConfig) GetDBUri(databaseName string) string {
5656
// Wrap IPv6 literals in square brackets
5757
hostname = fmt.Sprintf("[%s]", hostname)
5858
}
59-
return fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?interpolateParams=true&charset=utf8mb4,utf8,latin1", this.User, this.Password, hostname, this.Key.Port, databaseName)
59+
return fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?interpolateParams=true&autocommit=true&charset=utf8mb4,utf8,latin1", this.User, this.Password, hostname, this.Key.Port, databaseName)
6060
}

0 commit comments

Comments
 (0)