Skip to content

Commit 3abf748

Browse files
author
Shlomi Noach
authored
Merge pull request #459 from github/interpolate-params
interpolateParams=true: client side prepared statements
2 parents ed5c804 + e52c1de commit 3abf748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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?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&charset=utf8mb4,utf8,latin1", this.User, this.Password, hostname, this.Key.Port, databaseName)
6060
}

0 commit comments

Comments
 (0)