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

Implement PgHasArrayType for all references #2869

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

tylerhawkes
Copy link
Contributor

Does your PR solve an issue?

No, I can open one if necessary.

I was trying to implement an iterator type that I can use to bind so that I can use unnest for large inserts and simplify the existing code a lot. The problem I ran into is that &DateTime<Utc> and &BigDecimal don't implement PgHasArrayType even though they should trivially be able to with a generic impl. This fixes that.

The deleted overlapping impl will still have the same PgTypeInfo returned.

@abonander
Copy link
Collaborator

abonander commented Nov 9, 2023

This makes sense but unfortunately I think it's a breaking change. Since references are fundamental, there might be code out there that has already manually implemented PgHasArrayType for &'a Foo where Foo is a type in a user's crate, and this would conflict with that.

@tylerhawkes
Copy link
Contributor Author

You're right. Can we get it into the 0.8 version?

@abonander
Copy link
Collaborator

Yeah, we'll get it then.

@abonander abonander merged commit b607251 into launchbadge:main Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants