mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Fix: Add arguments to the products RawQuery
This commit is contained in:
parent
4c019d13ca
commit
2c1a542b0f
@ -200,7 +200,7 @@ interface ProductDao : BaseDao<Product> {
|
||||
}::class
|
||||
builder += "product.${ROW_NAME} COLLATE LOCALIZED ASC${if (numberOfItems > 0) " LIMIT $numberOfItems" else ""}"
|
||||
|
||||
return SimpleSQLiteQuery(builder.build())
|
||||
return SimpleSQLiteQuery(builder.build(),builder.arguments.toTypedArray())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ class QueryBuilder {
|
||||
}
|
||||
|
||||
private val builder = StringBuilder()
|
||||
private val arguments = mutableListOf<String>()
|
||||
val arguments = mutableListOf<String>()
|
||||
|
||||
operator fun plusAssign(query: String) {
|
||||
if (builder.isNotEmpty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user