Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions oracle/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 1 addition & 2 deletions tests/boolean_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})

Expand Down
Loading