You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
public subscript(idx: Int)-> Blob {
if let pointer =sqlite3_column_blob(handle,Int32(idx)){letlength=Int(sqlite3_column_bytes(handle,Int32(idx)))returnBlob(bytes: pointer, length: length)}else{fatalError("sqlite3_column_blob returned NULL")}}
Shouldn't the else return an empty BLOB (Blob(bytes: [])) in this case?
The text was updated successfully, but these errors were encountered:
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: