Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCustomizedTypePrimaryKey (0.21 sec)

  1. tests/query_test.go

    	if user.Name != "select_with_array" || user.Age != 42 {
    		t.Errorf("Should have selected both age and name")
    	}
    }
    
    func TestCustomizedTypePrimaryKey(t *testing.T) {
    	type ID uint
    	type CustomizedTypePrimaryKey struct {
    		ID   ID
    		Name string
    	}
    
    	DB.Migrator().DropTable(&CustomizedTypePrimaryKey{})
    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