aboutsummaryrefslogtreecommitdiff
path: root/mediaapi/storage/sqlite3/sql.go
diff options
context:
space:
mode:
Diffstat (limited to 'mediaapi/storage/sqlite3/sql.go')
-rw-r--r--mediaapi/storage/sqlite3/sql.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/mediaapi/storage/sqlite3/sql.go b/mediaapi/storage/sqlite3/sql.go
index 9cd78b8e..245bd40c 100644
--- a/mediaapi/storage/sqlite3/sql.go
+++ b/mediaapi/storage/sqlite3/sql.go
@@ -17,6 +17,8 @@ package sqlite3
import (
"database/sql"
+
+ "github.com/matrix-org/dendrite/internal/sqlutil"
)
type statements struct {
@@ -24,11 +26,11 @@ type statements struct {
thumbnail thumbnailStatements
}
-func (s *statements) prepare(db *sql.DB) (err error) {
- if err = s.media.prepare(db); err != nil {
+func (s *statements) prepare(db *sql.DB, writer sqlutil.Writer) (err error) {
+ if err = s.media.prepare(db, writer); err != nil {
return
}
- if err = s.thumbnail.prepare(db); err != nil {
+ if err = s.thumbnail.prepare(db, writer); err != nil {
return
}