Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix fromsql for domains#1189

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
paolobarbolini merged 2 commits intorust-postgres:masterfromzacknewman:master
Sep 21, 2025
Merged

Conversation

zacknewman
Copy link
Contributor

Fixes#1188.

@sfackler
Copy link
Collaborator

Can you add a test for the case that was failing before this fix?

@zacknewman
Copy link
ContributorAuthor

Added a test.

@zacknewman
Copy link
ContributorAuthor

zacknewman commentedFeb 5, 2025
edited
Loading

@sfackler, ping. Is it possible this gets merged? Currently one has to maintain their own fork that isn't affected by this bug, manually implementFromSql instead ofderiveing it, or live without the ability to construct certain types in PostgreSQL (which ideally would be documented at least). Can I improve the PR somehow?

@ZakSingh
Copy link

Would really love to see this merged! Ran into this issue recently.

Copy link
Member

@paolobarbolinipaolobarbolini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

sqlx ended up merging the PR mentioned in#1188 (comment), and their fix is very similar to yourshttps://github.com/launchbadge/sqlx/blob/c52e129e8341c46b2ea5c9b912e1af665be1ef83/sqlx-postgres/src/type_info.rs#L1039-L1050. They haven't tagged a release yet, so it hasn't really been tested in the wild, but the fix looks right so I'm merging it.

@paolobarbolinipaolobarbolini merged commitdd291a4 intorust-postgres:masterSep 21, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@paolobarbolinipaolobarbolinipaolobarbolini approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

unreachable code entered whenSELECTing nested composite types andDOMAINs
4 participants
@zacknewman@sfackler@ZakSingh@paolobarbolini

[8]ページ先頭

©2009-2025 Movatter.jp