Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestParseConstraintNameWithSchemaQualifiedLongTableName (1.3 sec)

  1. schema/relationship_test.go

    	gorm.Model
    	Author   Author
    	AuthorID uint
    }
    
    func (Book) TableName() string {
    	return "my_schema.a_very_very_very_very_very_very_very_very_long_table_name"
    }
    
    func TestParseConstraintNameWithSchemaQualifiedLongTableName(t *testing.T) {
    	s, err := schema.Parse(
    		&Book{},
    		&sync.Map{},
    		schema.NamingStrategy{IdentifierMaxLength: 64},
    	)
    	if err != nil {
    		t.Fatalf("Failed to parse schema")
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Aug 18 11:44:52 UTC 2025
    - 26.5K bytes
    - Viewed (0)
Back to top