Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestStringPrimaryKeyForNumericValueStartingWithZero (0.88 sec)

  1. 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{})
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Jul 22 06:21:04 UTC 2025
    - 51K bytes
    - Viewed (0)
Back to top