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
I run sea-orm-cli generate entity and the resulting rust code does not compile:
error[E0277]: the trait bound `Option<Vec<Vec<u8>>>: TryGetable` is not satisfied
--> blockscout-db/entity/src/account_public_tags_requests.rs:5:35
|
5 | #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
| ^^^^^^^^^^^^^^^^^ the trait `TryGetable` is not implemented for `Option<Vec<Vec<u8>>>`
Steps to Reproduce
Have a table with column of type bytea[]
Generate entities from the table
Try to compile the result
Expected Behavior
Compiles
Actual Behavior
Not compiles
Reproduces How Often
Consistent
Workarounds
Couldn't find any. postgres-array feature seems to be connected, but it doesn't compile with it enabled
Reproducible Example
Seems too simple to make a PR, let me know if it's actually needed:
features = [ "sqlx-postgres", "runtime-tokio-rustls", "macros", "postgres-array" ], doesn't work with only postgres-array and without any as well
OS:
System Version: macOS 14.5 (23F79)
Kernel Version: Darwin 23.5.0
I would ask it in discord beforehand, but web version refuses to work for some reason 🤷
The text was updated successfully, but these errors were encountered:
bragov4ik
changed the title
Generated entities: the trait bound Option<Vec<Vec<u8>>>: TryGetable is not satisfied
Generated entities: "the trait bound Option<Vec<Vec<u8>>>: TryGetable is not satisfied"
Aug 29, 2024
Description
I run
sea-orm-cli generate entity
and the resulting rust code does not compile:Steps to Reproduce
bytea[]
Expected Behavior
Compiles
Actual Behavior
Not compiles
Reproduces How Often
Consistent
Workarounds
Couldn't find any.
postgres-array
feature seems to be connected, but it doesn't compile with it enabledReproducible Example
Seems too simple to make a PR, let me know if it's actually needed:
Versions
sha256:6b841c8f6a819884207402f1209a8116844365df15fca8cf556fc54a24c70800
)features = [ "sqlx-postgres", "runtime-tokio-rustls", "macros", "postgres-array" ]
, doesn't work with onlypostgres-array
and without any as wellI would ask it in discord beforehand, but web version refuses to work for some reason 🤷
The text was updated successfully, but these errors were encountered: