Skip to content

Commit 5b29e7c

Browse files
author
Nathan Fallet
authored
Merge pull request stephencelis#1192 from pongsakorn-onsri/fix/build-error
2 parents 926b87d + 0d905d7 commit 5b29e7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SQLite/Core/Connection+Pragmas.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public extension Connection {
77
/// See SQLite [PRAGMA user_version](https://sqlite.org/pragma.html#pragma_user_version)
88
var userVersion: UserVersion? {
99
get {
10-
(try? scalar("PRAGMA user_version") as? Int64).map(Int32.init)
10+
(try? scalar("PRAGMA user_version") as? Int64)?.map(Int32.init)
1111
}
1212
set {
1313
_ = try? run("PRAGMA user_version = \(newValue ?? 0)")

0 commit comments

Comments
 (0)