File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,10 @@ func convertValue(val interface{}) interface{} {
218218
219219 // Dereference pointers
220220 rv := reflect .ValueOf (val )
221+ if rv .Kind () == reflect .Ptr && rv .IsNil () {
222+ return nil
223+ }
224+
221225 for rv .Kind () == reflect .Ptr && ! rv .IsNil () {
222226 rv = rv .Elem ()
223227 val = rv .Interface ()
Original file line number Diff line number Diff line change @@ -259,9 +259,8 @@ func TestBooleanStringCoercion(t *testing.T) {
259259 }
260260}
261261
262-
263262func TestBooleanNullableColumn (t * testing.T ) {
264- t .Skip ("Skipping until nullable bool bug is resolved" )
263+ // t.Skip("Skipping until nullable bool bug is resolved")
265264 DB .Migrator ().DropTable (& BooleanTest {})
266265 DB .AutoMigrate (& BooleanTest {})
267266
You can’t perform that action at this time.
0 commit comments