Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Commit 4b9e94a

Browse files
Jesse CorettaJesse Coretta
authored andcommitted
Add AttributeType Map MUB clause
1 parent 33fdd56 commit 4b9e94a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

at.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,7 @@ func (r AttributeType) Map() (def DefinitionMap) {
17471747
def[`SUBSTR`] = []string{r.Substring().OID()}
17481748
def[`ORDERING`] = []string{r.Ordering().OID()}
17491749
def[`SYNTAX`] = []string{r.Syntax().NumericOID()}
1750+
def[`MUB`] = []string{itoa(int(r.MinimumUpperBounds()))}
17501751
def[`SINGLE-VALUE`] = []string{bool2str(r.SingleValue())}
17511752
def[`COLLECTIVE`] = []string{bool2str(r.Collective())}
17521753
def[`NO-USER-MODIFICATION`] = []string{bool2str(r.NoUserModification())}

def.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ func (r *DefinitionMap) clean() {
7272
delete(*r, k)
7373
} else if len(v[0]) == 0 {
7474
delete(*r, k)
75+
} else if k == `MUB` && v[0] == `0` {
76+
delete(*r, k)
7577
}
7678
}
7779
}

0 commit comments

Comments
 (0)