File tree 1 file changed +6
-0
lines changed
data/src/main/java/org/cryptomator/data/db/sqlmapping
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import android.os.CancellationSignal
7
7
import androidx.sqlite.db.SimpleSQLiteQuery
8
8
import androidx.sqlite.db.SupportSQLiteDatabase
9
9
import androidx.sqlite.db.SupportSQLiteOpenHelper
10
+ import androidx.sqlite.db.SupportSQLiteProgram
10
11
import androidx.sqlite.db.SupportSQLiteQuery
11
12
import androidx.sqlite.db.SupportSQLiteStatement
12
13
import timber.log.Timber
@@ -166,9 +167,14 @@ internal class MappingSupportSQLiteDatabase(
166
167
167
168
private val _sql = map(delegateQuery.sql)
168
169
private val sqlDelegate = OneOffDelegate { Timber .tag(" MappingSupportSQLiteQuery" ).e(" SQL queried twice" ) }
170
+ private val bindToDelegate = OneOffDelegate { Timber .tag(" MappingSupportSQLiteQuery" ).e(" bindTo called twice" ) }
169
171
170
172
override val sql: String
171
173
get() = sqlDelegate.call { _sql }
174
+
175
+ override fun bindTo (statement : SupportSQLiteProgram ) {
176
+ bindToDelegate.call { delegateQuery.bindTo(statement) }
177
+ }
172
178
}
173
179
}
174
180
You can’t perform that action at this time.
0 commit comments