Permalink
Browse files

handle changes with nil value (#29)

  • Loading branch information...
Fs02 committed Sep 8, 2018
1 parent d265577 commit de3f87e7dade19a1c5a90182a350abb4668ed049
Showing with 1 addition and 1 deletion.
  1. +1 −1 query.go
@@ -300,7 +300,7 @@ func (query Query) MustUpdate(record interface{}, chs ...*changeset.Changeset) {
func cloneChangeset(out map[string]interface{}, changes map[string]interface{}) {
for k, v := range changes {
// skip if not scannable
if !internal.Scannable(reflect.TypeOf(v)) {
if v == nil || !internal.Scannable(reflect.TypeOf(v)) {
continue
}

0 comments on commit de3f87e

Please sign in to comment.