More TODO

This commit is contained in:
Gwendal Roué committed 2018-01-16 09:06:53 +01:00
1 parent 888892b92f
commit 4eff5ab357
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -226,6 +226,7 @@ extension Database {
///
/// - throws: A DatabaseError if table does not exist.
public func region(rowIds: Set<Int64>, in tableName: String) throws -> DatabaseRegion {
// TODO: improves this.
guard let canonicalTableName = try String.fetchOne(self, "SELECT name FROM (SELECT name, type FROM sqlite_master UNION SELECT name, type FROM sqlite_temp_master) WHERE type = 'table' AND LOWER(name) = ?", arguments: [tableName.lowercased()]) else {
throw DatabaseError(message: "table does not exist")
}
+1 -1
View File
@@ -10,7 +10,7 @@
- [ ] REGEXP https://www.sqlite.org/lang_expr.html
- [ ] CASE x WHEN w1 THEN r1 WHEN w2 THEN r2 ELSE r3 END https://www.sqlite.org/lang_expr.html
- [ ] Write regression tests for #156 and #157
- [ ] TransactionObserver.stopObservingUntilNextTransaction()
- [ ] Improve Database.region(rowIds:in:)
GRDB 3.0