Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestUpdateWithDiffSchema (0.31 sec)

  1. tests/update_test.go

    		t.Errorf("Not error should happen when updating with gorm expr, but got %v", err)
    	}
    
    	if results[1].Age-results[0].Age != 100 {
    		t.Errorf("failed to return updated age column")
    	}
    }
    
    func TestUpdateWithDiffSchema(t *testing.T) {
    	user := GetUser("update-diff-schema-1", Config{})
    	DB.Create(&user)
    
    	type UserTemp struct {
    		Name string
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Dec 04 03:50:58 GMT 2023
    - 30.3K bytes
    - Viewed (0)
Back to top