Open PitayaDEV opened 3 months ago
Same bug happens on SQLite
This should NOT be
#[sea_orm(column_type = "custom(\"binary(16777216)\")")]
pub binary: String,
but
#[sea_orm(column_type = "Blob")]
pub binary: Vec<u8>,
A minimum reproduce is attached.
I defined a mediumblob field using this code:
When I generate an entity file using the command
the type of the field in the generated entity file becomes a String type:
Under such circumstances, if I query data from the database, this error occurs: