We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to the SQLite Documentation:
The return value from sqlite3_column_blob() for a zero-length BLOB is a NULL pointer
But this is the way SQLite.swift handles BLOB (on struct Cursor in Statements.swift):
struct Cursor
Statements.swift
public subscript(idx: Int) -> Blob { if let pointer = sqlite3_column_blob(handle, Int32(idx)) { let length = Int(sqlite3_column_bytes(handle, Int32(idx))) return Blob(bytes: pointer, length: length) } else { fatalError("sqlite3_column_blob returned NULL") } }
Shouldn't the else return an empty BLOB (Blob(bytes: [])) in this case?
else
Blob(bytes: [])
The text was updated successfully, but these errors were encountered:
Good catch, just pushed a fix for this.
Sorry, something went wrong.
c29247f
No branches or pull requests
According to the SQLite Documentation:
But this is the way SQLite.swift handles BLOB (on
struct Cursor
inStatements.swift
):Shouldn't the
else
return an empty BLOB (Blob(bytes: [])
) in this case?The text was updated successfully, but these errors were encountered: