mirror of https://github.com/status-im/migrate.git
Fix appending multiStatements=true parameter for mysql driver
This commit is contained in:
parent
5c8da71dea
commit
14f784961f
|
@ -85,7 +85,9 @@ func (m *Mysql) Open(url string) (database.Driver, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
purl.Query().Set("multiStatements", "true")
|
||||
q := purl.Query()
|
||||
q.Set("multiStatements", "true")
|
||||
purl.RawQuery = q.Encode()
|
||||
|
||||
db, err := sql.Open("mysql", strings.Replace(
|
||||
migrate.FilterCustomQuery(purl).String(), "mysql://", "", 1))
|
||||
|
|
Loading…
Reference in New Issue