Skip to content

Fix untyped Uint8List parameters being encoded as int array literals - #458

Merged
isoos merged 1 commit into
isoos:masterfrom
xvrh:xha/fixuint8encoder
Jun 11, 2026
Merged

Fix untyped Uint8List parameters being encoded as int array literals#458
isoos merged 1 commit into
isoos:masterfrom
xvrh:xha/fixuint8encoder

Conversation

@xvrh

@xvrh xvrh commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Uint8List implements List, so the text encoder produced '{0,1,...}', which Postgres silently coerces into bytea columns as garbage bytes. Encode it as a bytea hex literal instead.

Uint8List implements List<int>, so the text encoder produced '{0,1,...}', which Postgres silently coerces into bytea columns as garbage bytes.
Encode it as a bytea hex literal instead.
@isoos
isoos merged commit f4dc060 into isoos:master Jun 11, 2026
1 check passed
@isoos

isoos commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Thanks!

@xvrh
xvrh deleted the xha/fixuint8encoder branch June 11, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants