mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Database: Fix incorrect format of isolation level configuration parameter for MySQL (#36565)
This commit is contained in:
parent
bb1dac3c72
commit
ca2223f705
@ -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('&')
|
||||
|
Loading…
Reference in New Issue
Block a user