Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set right type for year (#43) #59

Merged
merged 1 commit into from
Jan 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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