Skip to content

Add slice of byte array support to pgdialect#1391

Open
NathanBaulch wants to merge 1 commit into
uptrace:masterfrom
NathanBaulch:bytearray
Open

Add slice of byte array support to pgdialect#1391
NathanBaulch wants to merge 1 commit into
uptrace:masterfrom
NathanBaulch:bytearray

Conversation

@NathanBaulch

@NathanBaulch NathanBaulch commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

I need to store an array of ULIDs in a bytea[] field. pgdialect correctly identifies this type as an array of [16]byte but generates an invalid SQL literal due to single quotes within a single quoted string, eg '{'\x010203','\x040506'}'.

This is a very simple fix with unit tests.

@NathanBaulch

Copy link
Copy Markdown
Contributor Author

I'm calling this a fix rather than a feat because it generates invalid SQL.

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.

1 participant