fix insert nil pk in pg
This commit is contained in:
parent
3525675771
commit
3c3c2f93cc
|
@ -554,6 +554,10 @@ func genCols(table *core.Table, session *Session, bean interface{}, useCol bool,
|
||||||
if len(fieldValue.String()) == 0 {
|
if len(fieldValue.String()) == 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
case reflect.Ptr:
|
||||||
|
if fieldValue.Pointer() == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue