We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
AnyNumeric
impl std::iter::Sum
It would be nice if pgrx implemented impl std::iter::Sum -- would make AnyNumeric easier to use here in plrust land.
The text was updated successfully, but these errors were encountered:
well, would ya look at that: pgcentralfoundation/pgrx#1117
Sorry, something went wrong.
This got taken care of as part of #297
[v14.7][1841693] plrust=# create function sum_array(a numeric[]) returns numeric strict language plrust as $$ Ok(Some(a.into_iter().map(|e| e.unwrap()).sum())) $$; CREATE FUNCTION [v14.7][1841693] plrust=# select sum_array(ARRAY[1, 2.0, 3.5]); sum_array ----------- 6.5 (1 row)
eeeebbbbrrrr
No branches or pull requests
It would be nice if pgrx implemented
impl std::iter::Sum
-- would make AnyNumeric easier to use here in plrust land.The text was updated successfully, but these errors were encountered: