Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 42 of 42 for key (0.11 sec)

  1. tests/associations_many2many_test.go

    	}
    
    	AssertAssociationCount(t, user2, "Languages", 0, "after clear")
    }
    
    func TestMany2ManyOmitAssociations(t *testing.T) {
    	tidbSkip(t, "not support the foreign key feature")
    
    	user := *GetUser("many2many_omit_associations", Config{Languages: 2})
    
    	if err := DB.Omit("Languages.*").Create(&user).Error; err == nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 13.2K bytes
    - Viewed (0)
  2. tests/query_test.go

    		t.Errorf("No error should happen when querying with customized type for primary key, got err %v", err)
    	}
    
    	AssertEqual(t, p, p2)
    }
    
    func TestStringPrimaryKeyForNumericValueStartingWithZero(t *testing.T) {
    	type AddressByZipCode struct {
    		ZipCode string `gorm:"primary_key"`
    		Address string
    	}
    
    	DB.Migrator().DropTable(&AddressByZipCode{})
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
Back to top