mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-25 01:01:21 +01:00
Add a commit to make sure the database has uncommitted data for the following query.
This commit is contained in:
parent
b4a5b9eb9e
commit
bf76aae903
@ -30,6 +30,8 @@ struct SyncStatusTable: DatabaseTable {
|
|||||||
let updateSQL = "update syncStatus set selected = true"
|
let updateSQL = "update syncStatus set selected = true"
|
||||||
database.executeUpdate(updateSQL, withArgumentsIn: nil)
|
database.executeUpdate(updateSQL, withArgumentsIn: nil)
|
||||||
|
|
||||||
|
database.commit()
|
||||||
|
|
||||||
var selectSQL = "select * from syncStatus where selected == true"
|
var selectSQL = "select * from syncStatus where selected == true"
|
||||||
if let limit = limit {
|
if let limit = limit {
|
||||||
selectSQL = "\(selectSQL) limit \(limit)"
|
selectSQL = "\(selectSQL) limit \(limit)"
|
||||||
|
Loading…
Reference in New Issue
Block a user