Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestScanNullValue (0.07 sec)

  1. tests/query_test.go

    	if len(results) != 2 {
    		t.Errorf("Two user group should be found, instead found %d", len(results))
    	}
    }
    
    func TestScanNullValue(t *testing.T) {
    	user := GetUser("scan_null_value", Config{})
    	DB.Create(&user)
    
    	if err := DB.Model(&user).Update("age", nil).Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K bytes
    - Viewed (0)
Back to top