You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is expected that with postgres-array feature enabled we could be able to use our numerical enum in arrays.
Actual Behavior
The compiler throws the following error:
|
10 | #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize)]
| ^^^^^^^^^^^^^^^^^ the trait `sea_orm::sea_query::value::with_array::NotU8` is not implemented for `MyEnum`
|
= help: the following other types implement trait `sea_orm::sea_query::value::with_array::NotU8`:
JsonValue
NaiveDate
NaiveDateTime
NaiveTime
Vec<u8>
bool
char
chrono::DateTime<Tz>
and 16 others
= note: required because of the requirements on the impl of `From<Vec<MyEnum>>` for `sea_orm::Value`
= note: required because of the requirements on the impl of `Into<sea_orm::Value>` for `Vec<MyEnum>`
note: required by a bound in `ActiveValue`
Description
With the upgrade to version 0.10.1, we would need to use some
Vec<Enum>
with PostgreSQL.Thanks by advance for help!
Steps to Reproduce
Vec<MyEnum>
in the model:cargo check
and the error should be thrown.Expected Behavior
It is expected that with
postgres-array
feature enabled we could be able to use our numerical enum in arrays.Actual Behavior
The compiler throws the following error:
Reproduces How Often
Occur on compilation.
Versions
Additional Information
Check reproduction steps.
The text was updated successfully, but these errors were encountered: