Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCustomColumnAndIgnoredFieldClash (0.23 sec)

  1. tests/customize_field_test.go

    	}
    
    	cc.Name = "bar"
    	DB.Save(&cc)
    
    	var cc2 CustomizeColumn
    	DB.First(&cc2, "mapped_id = ?", 666)
    	if cc2.Name != "bar" {
    		t.Errorf("Failed to query CustomizeColumn")
    	}
    }
    
    func TestCustomColumnAndIgnoredFieldClash(t *testing.T) {
    	// Make sure an ignored field does not interfere with another field's custom
    	// column name that matches the ignored field.
    	type CustomColumnAndIgnoredFieldClash struct {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Sep 11 09:33:31 GMT 2020
    - 6.9K bytes
    - Viewed (0)
Back to top