More TODO

This commit is contained in:
Gwendal Roué committed 2015-07-07 20:30:59 +02:00
1 parent 6fb27b96cd
commit b1425e0879
1 file changed
+11
@@ -226,6 +226,17 @@ class PrimaryKeyRowIDTests: RowModelTestCase {
}
}
// TODO: make this code nicer
func testSelectWithMultiplePrimaryKeys() {
assertNoError {
dbQueue.inDatabase { db in
let ids = [1,2,3]
let questionMarks = ",".join(Array(count: ids.count, repeatedValue: "?"))
db.fetchAll(Person.self, "SELECT * FROM persons WHERE id IN (\(questionMarks))", bindings: Bindings(ids))
}
}
}
func testDelete() {
assertNoError {
try dbQueue.inTransaction { db in