mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Unified Storage: Wrapping the mysql driver with hooks causes issues (#92099)
dont wrap the mysql driver with hooks. Its causing the error 'begin tx: sql: driver does not support non-default isolation level'.
This commit is contained in:
parent
b97fb3bb78
commit
1cb3470e3e
@ -51,8 +51,9 @@ func getEngineMySQL(getter *sectionGetter, tracer tracing.Tracer) (*xorm.Engine,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: get rid of xorm
|
// FIXME: get rid of xorm
|
||||||
driverName := sqlstore.WrapDatabaseDriverWithHooks(db.DriverMySQL, tracer)
|
// TODO figure out why wrapping the db driver with hooks causes mysql errors when writing
|
||||||
engine, err := xorm.NewEngine(driverName, config.FormatDSN())
|
//driverName := sqlstore.WrapDatabaseDriverWithHooks(db.DriverMySQL, tracer)
|
||||||
|
engine, err := xorm.NewEngine(db.DriverMySQL, config.FormatDSN())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("open database: %w", err)
|
return nil, fmt.Errorf("open database: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user