Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
This commit is contained in:
anqiansong
2021-06-15 18:54:41 +08:00
committed by GitHub
parent 58cdba2c5d
commit ea4f680052
2 changed files with 3 additions and 5 deletions

View File

@@ -170,9 +170,7 @@ func convertColumns(columns []*sqlparser.ColumnDefinition, primaryColumn string)
if column.Type.NotNull {
isDefaultNull = false
} else {
if column.Type.Default == nil {
isDefaultNull = false
} else if string(column.Type.Default.Val) != "null" {
if column.Type.Default != nil {
isDefaultNull = false
}
}