Rust sqlx插件查询mysql报错类型mismatched types
error occurred while decoding column "views": mismatched types; Rust type `i64` (as SQL type `BIGINT`) is not compatible with SQL type `DECIMAL` 这错误的原因是因为sum()函数返回的类型是DECIMAL 而不是BIGINT,可以通过cast as的方式将sum()的结果转换解决