Commit 45247fe
fix: add storage to pinned versions check and fix pgx v5.9 macaddr array decoding
- Add cloud.google.com/go/storage v1.59.2 to pinnedVersions in
check_pinned_versions/main.go (the go.mod already had the PINNED comment
but the checker map was missing the entry)
- Fix convertToStringArray to handle pgx v5.9 binary-encoded array elements:
pgx v5.9 may decode macaddr[] columns as pgtype.Array[string] where each
element is the 6-byte binary wire format instead of "XX:XX:XX:XX:XX:XX".
Use ArrayCodec.ElementType to find the element OID, then attempt a
binary→text re-scan; fall back to net.HardwareAddr for macaddr specifically.
Co-authored-by: Ilia Demianenko <ilidemi@users.noreply.github.com>1 parent f9b09fe commit 45247fe
2 files changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
342 | 366 | | |
343 | 367 | | |
344 | 368 | | |
| |||
0 commit comments