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

Derive Clone, Copy for SQL types #28

Merged
merged 1 commit into from
Jul 21, 2024
Merged

Derive Clone, Copy for SQL types #28

merged 1 commit into from
Jul 21, 2024

Conversation

lkral-navmatix
Copy link
Contributor

Hello, I have found that is is currently not possible to construct certain queries (such as joining tables based on result of a function like ST_Intersect) due to Geometry/Geography not implementing Clone.

Given that Diesel implements both Clone and Copy for its SQL types and that they are ZSTs, I have decided to add derives for them here as well.

@vitaly-m vitaly-m merged commit 9df1340 into vitaly-m:master Jul 21, 2024
@vitaly-m
Copy link
Owner

Thanks for PR, available in 2.4.1

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