diff --git a/pkg/infra/db/db.go b/pkg/infra/db/db.go index 82046d3eda0..d85b7db05e9 100644 --- a/pkg/infra/db/db.go +++ b/pkg/infra/db/db.go @@ -19,6 +19,7 @@ type DB interface { GetDBType() core.DbType GetSqlxSession() *session.SessionDB InTransaction(ctx context.Context, fn func(ctx context.Context) error) error + Quote(value string) string } type Session = sqlstore.DBSession diff --git a/pkg/infra/db/dbtest/dbtest.go b/pkg/infra/db/dbtest/dbtest.go index cdd9b7393c6..142626189e2 100644 --- a/pkg/infra/db/dbtest/dbtest.go +++ b/pkg/infra/db/dbtest/dbtest.go @@ -47,6 +47,10 @@ func (f *FakeDB) GetSqlxSession() *session.SessionDB { return nil } +func (f *FakeDB) Quote(value string) string { + return "" +} + // TODO: service-specific methods not yet split out ; to be removed func (f *FakeDB) UpdateTempUserWithEmailSent(ctx context.Context, cmd *models.UpdateTempUserWithEmailSentCommand) error { return f.ExpectedError