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 {
|
if col.IsDeleted {
|
||||||
colNames = append(colNames, col.Name)
|
colNames = append(colNames, col.Name)
|
||||||
if !col.Nullable {
|
if !col.Nullable {
|
||||||
args = append(args, time.Time{})
|
if col.SQLType.IsNumeric() {
|
||||||
|
args = append(args, 0)
|
||||||
|
} else {
|
||||||
|
args = append(args, time.Time{})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
args = append(args, nil)
|
args = append(args, nil)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue