Skip to content

Commit

Permalink
Merge branch 'master' into 0.15.x
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Feb 2, 2024
2 parents 19de9b5 + 3d46e85 commit 5c0b2b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mysql/writer/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl ColumnInfo {
col_def.timestamp();
}
Type::Year => {
col_def.year(None);
col_def.year();
}
Type::Char(str_attr) => {
match str_attr.length {
Expand Down
2 changes: 1 addition & 1 deletion tests/live/mysql/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ fn create_db_types_table() -> TableCreateStatement {
.col(ColumnDef::new(Alias::new("bit_1")).bit(Some(1)))
.col(ColumnDef::new(Alias::new("bit_2")).bit(Some(16)))
.col(ColumnDef::new(Alias::new("bit_3")).bit(Some(32)))
.col(ColumnDef::new(Alias::new("year")).year(None))
.col(ColumnDef::new(Alias::new("year")).year())
.primary_key(Index::create().col(Alias::new("id")))
.engine("InnoDB")
.character_set("utf8mb4")
Expand Down

0 comments on commit 5c0b2b2

Please sign in to comment.