add nil value filter for buildConditions
This commit is contained in:
parent
667dcd039f
commit
f44f70acd8
|
@ -344,6 +344,10 @@ func buildConditions(engine *Engine, table *Table, bean interface{}, includeVers
|
||||||
} else {
|
} else {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
case reflect.Ptr:
|
||||||
|
if fieldValue.IsNil() || !fieldValue.IsValid() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
val = fieldValue.Interface()
|
val = fieldValue.Interface()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue