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 cef6655 commit f91a8fcCopy full SHA for f91a8fc
Sources/SwiftSQL/SQLConnection.swift
@@ -111,7 +111,7 @@ public final class SQLConnection {
111
// MARK: Private
112
113
@discardableResult
114
- private func isOK(_ code: Int32) throws -> Int32 {
+ func isOK(_ code: Int32) throws -> Int32 {
115
guard let error = SQLError(code: code, db: ref) else { return code }
116
throw error
117
}
Sources/SwiftSQL/SQLStatement.swift
@@ -217,7 +217,6 @@ public final class SQLStatement {
217
218
219
private func isOK(_ code: Int32) throws -> Int32 {
220
- guard let error = SQLError(code: code, db: db.ref) else { return code }
221
- throw error
+ try db.isOK(code)
222
223
0 commit comments