-
My database column is modified from How to override column_type without modifying code from Code #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "xxx")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false, column_type = "BigInteger")]
pub id: i64,
....
} Error Err(Query Error: error occurred while decoding column "id": mismatched types; Rust type `core::option::Option<i64>` (as SQL type `BIGINT`) is not compatible with SQL type `BIGINT UNSIGNED` |
Beta Was this translation helpful? Give feedback.
Answered by
billy1624
Jan 20, 2022
Replies: 1 comment 5 replies
-
Hey @lz1998, I guess you are using PostgreSQL, try changing the |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
lz1998
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @lz1998, I guess you are using PostgreSQL, try changing the
i64
tou64