Commit c64f09f
Fix GetRawUnit for v1 MPR files: convert UUID to GUID blob
GetRawUnit passed the UUID string directly to SQLite for v1 MPRs,
but UnitID is stored as a 16-byte GUID blob. The query never matched,
silently returning "no rows" for every unit lookup on v1 projects.
Use types.UUIDToBlob() before querying, consistent with
getUnitByIDV1() in reader_units.go and GetRawUnitBytes() in
writer_security.go which already have the correct implementation.
Fixes #705
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d1b17a4 commit c64f09f
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
466 | | - | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
467 | 468 | | |
468 | 469 | | |
469 | 470 | | |
| |||
0 commit comments