Skip to content

Commit

Permalink
Fix DeriveValueType by qualifying QueryResult #1855
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Sep 12, 2023
1 parent 1470dd3 commit 4804170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sea-orm-macros/src/derives/value_type.rs
Expand Up @@ -108,7 +108,7 @@ impl DeriveValueType {

#[automatically_derived]
impl sea_orm::TryGetable for #name {
fn try_get_by<I: sea_orm::ColIdx>(res: &QueryResult, idx: I) -> Result<Self, sea_orm::TryGetError> {
fn try_get_by<I: sea_orm::ColIdx>(res: &sea_orm::QueryResult, idx: I) -> Result<Self, sea_orm::TryGetError> {
<#field_type as sea_orm::TryGetable>::try_get_by(res, idx).map(|v| #name(v))
}
}
Expand Down

0 comments on commit 4804170

Please sign in to comment.