Fix test
This commit is contained in:
parent
761926fd8b
commit
e3b6f79b43
|
@ -500,7 +500,11 @@ func (session *Session) genInsertColumns(bean interface{}) ([]string, []interfac
|
|||
if col.IsDeleted {
|
||||
colNames = append(colNames, col.Name)
|
||||
if !col.Nullable {
|
||||
if col.SQLType.IsNumeric() {
|
||||
args = append(args, 0)
|
||||
} else {
|
||||
args = append(args, time.Time{})
|
||||
}
|
||||
} else {
|
||||
args = append(args, nil)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue