Database: Fix incorrect format of isolation level configuration parameter for MySQL (#36565)
This commit is contained in:
@@ -236,7 +236,8 @@ func (ss *SQLStore) buildConnectionString() (string, error) {
|
||||
}
|
||||
|
||||
if isolation := ss.dbCfg.IsolationLevel; isolation != "" {
|
||||
cnnstr += "&tx_isolation=" + isolation
|
||||
val := url.QueryEscape(fmt.Sprintf("'%s'", isolation))
|
||||
cnnstr += fmt.Sprintf("&tx_isolation=%s", val)
|
||||
}
|
||||
|
||||
cnnstr += ss.buildExtraConnectionString('&')
|
||||
|
||||
Reference in New Issue
Block a user