Skip to content

Commit

Permalink
codegen: fix ColumnType::Bit resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Aug 5, 2024
1 parent 7e433df commit 26e2a30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sea-orm-codegen/src/entity/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ impl Column {
ColumnType::Array(column_type) => {
format!("Vec<{}>", write_rs_type(column_type, date_time_crate))
}
ColumnType::Bit(Some(1)) => "bool".to_owned(),
ColumnType::Bit(_) => "Vec<u8>".to_owned(),
_ => unimplemented!(),
}
}
Expand Down

0 comments on commit 26e2a30

Please sign in to comment.