Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions sdk/mpr/reader_documents.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,9 @@ func (r *Reader) GetRawUnit(id model.ID) (map[string]any, error) {
return nil, fmt.Errorf("failed to read unit contents: %w", err)
}
} else {
// V1: Read from database
row := r.db.QueryRow("SELECT Contents FROM Unit WHERE UnitID = ?", string(id))
// V1: Read from database — convert UUID to GUID blob for the query
unitIDBlob := types.UUIDToBlob(string(id))
row := r.db.QueryRow("SELECT Contents FROM Unit WHERE UnitID = ?", unitIDBlob)
err = row.Scan(&contents)
if err != nil {
return nil, fmt.Errorf("failed to read unit from database: %w", err)
Expand Down
Loading