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

impl Sum and Default for AnyNumeric #1117

Merged
merged 1 commit into from
Apr 24, 2023
Merged

Conversation

eeeebbbbrrrr
Copy link
Contributor

@eeeebbbbrrrr eeeebbbbrrrr commented Apr 20, 2023

➡️ In doing so, I realized that the FromDatum implementations for both AnyNumeric and Vec<T>/Vec<Option<T>> also needed to overload the from_datum_in_memory_context() function in order to properly return Arrays from Spi. And by "properly" I mean it's no longer UAF.

So I'm mixing a little peanut butter with my jelly here, but now there's some tests around this that use the new impl Sum for AnyNumeric.

In doing so, I realized that the `FromDatum` implementations for both `AnyNumeric` and `Vec<T>/Vec<Option<T>>` also needed to overload the `from_datum_in_memory_context()` function in order to properly return Arrays from Spi.

So I'm mixing a little peanut butter with my jelly here, but now there's some tests around this that use the new `impl Sum for AnyNumeric`.
@eeeebbbbrrrr eeeebbbbrrrr merged commit 76aec0c into develop Apr 24, 2023
This was referenced Apr 24, 2023
@eeeebbbbrrrr eeeebbbbrrrr deleted the numeric-sum-trait branch June 20, 2023 17:59
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