Skip to content

Commit eddb6ca

Browse files
authored
Fix invalid sea_query path of select_as and save_as in DeriveEntityModel (#2742)
1 parent 629bc6a commit eddb6ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sea-orm-macros/src/derives/entity_model.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec<Attribute>) -> syn::Res
277277

278278
if let Some(select_as) = select_as {
279279
columns_select_as.push(quote! {
280-
Self::#field_name => ::sea_query::ExprTrait::cast_as(expr, #select_as)
280+
Self::#field_name => sea_orm::sea_query::ExprTrait::cast_as(expr, #select_as)
281281
});
282282
}
283283
if let Some(save_as) = save_as {
284284
columns_save_as.push(quote! {
285-
Self::#field_name => ::sea_query::ExprTrait::cast_as(val, #save_as)
285+
Self::#field_name => sea_orm::sea_query::ExprTrait::cast_as(val, #save_as)
286286
});
287287
}
288288

0 commit comments

Comments
 (0)