Skip to content

Commit

Permalink
Make decodeNil handling consistent with the other drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynne committed Oct 18, 2023
1 parent 5caea7d commit def08c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SQLiteKit/SQLiteRow+SQLRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extension SQLiteRow: SQLRow {

public func decodeNil(column: String) throws -> Bool {
guard let data = self.column(column) else {
throw MissingColumn(column: column)
return true
}
return data == .null
}
Expand Down

0 comments on commit def08c1

Please sign in to comment.