diff --git a/oracle/common.go b/oracle/common.go index efcb375..594a117 100644 --- a/oracle/common.go +++ b/oracle/common.go @@ -218,6 +218,10 @@ func convertValue(val interface{}) interface{} { // Dereference pointers rv := reflect.ValueOf(val) + if rv.Kind() == reflect.Ptr && rv.IsNil() { + return nil + } + for rv.Kind() == reflect.Ptr && !rv.IsNil() { rv = rv.Elem() val = rv.Interface() diff --git a/tests/boolean_test.go b/tests/boolean_test.go index cd945b2..f0de85b 100644 --- a/tests/boolean_test.go +++ b/tests/boolean_test.go @@ -259,9 +259,8 @@ func TestBooleanStringCoercion(t *testing.T) { } } - func TestBooleanNullableColumn(t *testing.T) { - t.Skip("Skipping until nullable bool bug is resolved") + // t.Skip("Skipping until nullable bool bug is resolved") DB.Migrator().DropTable(&BooleanTest{}) DB.AutoMigrate(&BooleanTest{})