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
#[py_sql("select ROUND(IFNULL(AVG(level), 0)) from rating WHERE id = #{id} ")] async fn query_rating_by_app(rb: &RBatis, id: usize) -> usize { impled!() }
called Result::unwrap() on an Err value: E("error while decoding value: invalid type: map, expected usize")
Result::unwrap()
Err
The text was updated successfully, but these errors were encountered:
select ROUND return an float value(just like 1.0) so,you should change to type f64
f64
#[py_sql("select ROUND(IFNULL(AVG(level), 0)) from rating WHERE id = #{id} ")] async fn query_rating_by_app(rb: &RBatis, id: usize) -> f64{ impled!() }
Sorry, something went wrong.
fix for #498
be733d9
No branches or pull requests
called
Result::unwrap()
on anErr
value: E("error while decoding value: invalid type: map, expected usize")The text was updated successfully, but these errors were encountered: