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
let maun = match maunfilelist::Entity::find()
.filter(maunfilelist::Column::Maunid.contains(maunid))
.one(db)
.await{
Ok(maun) =>
match maun {
Some(maun) => maun,
None => {
res.status_code(StatusCode::IM_USED).render("{\"Error\":\"No such maun\"}");
return;
}
},
Err(e) => {
res.status_code(StatusCode::IM_USED).render(e.to_string());
return;
}
};
But I got it in the front end, which is not the value I want.
"Query Error: error occurred while decoding column "file": mismatched types; Rust type `core::option::Option<alloc::vec::Vec<alloc::string::String>>` (as SQL type `TEXT[]`) is not compatible with SQL type `_maunfile`"
Then I found New type in your official documentation, but it doesn't seem to be an example for my current situation.
I very much hope that I can solve this problem. I would be very grateful. If I have any omissions, please point them out.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
when i use sql write to pgsql
i use sea-orm-cli generate an entity
Use this query in web backend
But I got it in the front end, which is not the value I want.
Then I found New type in your official documentation, but it doesn't seem to be an example for my current situation.
I very much hope that I can solve this problem. I would be very grateful. If I have any omissions, please point them out.
Beta Was this translation helpful? Give feedback.
All reactions