fix insert nil pk in pg

This commit is contained in:
biless 2017-05-18 09:59:34 +08:00
parent 3525675771
commit 3c3c2f93cc
1 changed files with 4 additions and 0 deletions

View File

@ -554,6 +554,10 @@ func genCols(table *core.Table, session *Session, bean interface{}, useCol bool,
if len(fieldValue.String()) == 0 {
continue
}
case reflect.Ptr:
if fieldValue.Pointer() == 0 {
continue
}
}
}