Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs for postgres composite types #3547

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Zarathustra2
Copy link
Contributor

Hi,

I updated docs to state that structs representing composite types must have their fields in the same order as the composite type as otherwise binding the composite will fail in the query due to the way composite types are being encoded.

I don't think there is a workaround for that as encoding by tuple is the only option as stated here: https://www.postgresql.org/docs/current/rowtypes.html

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