We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946f69e commit 5f5ad81Copy full SHA for 5f5ad81
Sources/SQLite/Core/Connection.swift
@@ -159,9 +159,7 @@ public final class Connection {
159
(try? scalar("PRAGMA user_version") as? Int64).map(Int32.init)
160
}
161
set {
162
- if let userVersion = newValue {
163
- _ = try? run("PRAGMA user_version = \(userVersion)")
164
- }
+ _ = try? run("PRAGMA user_version = \(newValue ?? 0)")
165
166
167
0 commit comments