From 4c7bcdeb3cb0db4854affb8c582e864f9e3709ed Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Sat, 8 Mar 2025 23:44:31 +0000 Subject: [PATCH] Quality types --- sea-orm-macros/src/derives/partial_model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sea-orm-macros/src/derives/partial_model.rs b/sea-orm-macros/src/derives/partial_model.rs index 63ea2462c..133990b8a 100644 --- a/sea-orm-macros/src/derives/partial_model.rs +++ b/sea-orm-macros/src/derives/partial_model.rs @@ -263,7 +263,7 @@ impl DerivePartialModel { &format_ident!("{}", field.to_upper_camel_case()) }; let col_value = if let Some(alias) = alias { - quote!(Expr::col((sea_orm::sea_query::Alias::new(#alias), <#entity as sea_orm::EntityTrait>::Column:: #col_name))) + quote!(sea_orm::sea_query::Expr::col((sea_orm::sea_query::Alias::new(#alias), <#entity as sea_orm::EntityTrait>::Column:: #col_name))) } else { quote!( <#entity as sea_orm::EntityTrait>::Column:: #col_name) };