From 27807f3f6cefda824221f9f834b50e36d95eaf65 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Sat, 18 Sep 2021 21:45:28 +0800 Subject: [PATCH] Fix DeriveEntityModel Decimal mapping --- sea-orm-macros/src/derives/entity_model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sea-orm-macros/src/derives/entity_model.rs b/sea-orm-macros/src/derives/entity_model.rs index 2bba86ae..f0772763 100644 --- a/sea-orm-macros/src/derives/entity_model.rs +++ b/sea-orm-macros/src/derives/entity_model.rs @@ -180,7 +180,7 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec) -> syn::Res } "Uuid" => quote! { Uuid }, "Json" => quote! { Json }, - "Decimal" => quote! { Decimal }, + "Decimal" => quote! { Decimal(None) }, "Vec" => quote! { Binary }, _ => { return Err(Error::new(