Add a commit to make sure the database has uncommitted data for the following query.

This commit is contained in:
Maurice Parker committed 2022-03-26 13:36:39 -05:00
1 parent 050bb67d80
commit f68836fd74
1 file changed
+2
@@ -30,6 +30,8 @@ struct SyncStatusTable: DatabaseTable {
let updateSQL = "update syncStatus set selected = true"
database.executeUpdate(updateSQL, withArgumentsIn: nil)
database.commit()
var selectSQL = "select * from syncStatus where selected == true"
if let limit = limit {
selectSQL = "\(selectSQL) limit \(limit)"