Skip to content

Commit

Permalink
set right type for year (PingCAP-QE#43)
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei authored and Huichang committed Jan 29, 2023
1 parent 6ebfd44 commit 48fdcd9
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 48fdcd9

Please sign in to comment.