Skip to content

Commit

Permalink
set right type for year (#43) (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
aytrack authored Jan 29, 2023
1 parent 6ebfd44 commit 6c33c3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddl/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ func (col *ddlTestColumn) canBeWhere() bool {
}
}

//BLOB, TEXT, GEOMETRY or JSON column 'b' can't have a default value")
// BLOB, TEXT, GEOMETRY or JSON column 'b' can't have a default value")
func (col *ddlTestColumn) canHaveDefaultValue() bool {
switch col.k {
case KindBLOB, KindTINYBLOB, KindMEDIUMBLOB, KindLONGBLOB, KindTEXT, KindTINYTEXT, KindMEDIUMTEXT, KindLONGTEXT, KindJSON:
Expand Down Expand Up @@ -892,7 +892,7 @@ func (col *ddlTestColumn) normalizeDataType() string {
case KindTIMESTAMP:
return "timestamp"
case KindYEAR:
return "year(4) unsigned"
return "year(4)"
case KindJSON:
return "json"
case KindEnum:
Expand Down

0 comments on commit 6c33c3e

Please sign in to comment.