Skip to content

Commit

Permalink
Merge branch 'main' of github.com:marcoarment/Blackbird
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Arment committed May 21, 2024
2 parents 86b4fb9 + 076827d commit e33c74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Blackbird/BlackbirdDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ extension Blackbird {

self.maxQueryVariableCount = Int(sqlite3_limit(handle, SQLITE_LIMIT_VARIABLE_NUMBER, -1))

if SQLITE_OK != sqlite3_exec(handle, "PRAGMA journal_mode = WAL", nil, nil, nil) || SQLITE_OK != sqlite3_exec(handle, "PRAGMA synchronous = NORMAL", nil, nil, nil) {
if !normalizedOptions.contains(.readOnly), SQLITE_OK != sqlite3_exec(handle, "PRAGMA journal_mode = WAL", nil, nil, nil) || SQLITE_OK != sqlite3_exec(handle, "PRAGMA synchronous = NORMAL", nil, nil, nil) {
sqlite3_close(handle)
if let path = self.path { InstancePool.removeInstance(path: path) }
throw Error.unsupportedConfigurationAtPath(path: path)
Expand Down

0 comments on commit e33c74e

Please sign in to comment.