diff --git a/docs/src/manpage.md b/docs/src/manpage.md index 47587dacb..c4a65ea40 100644 --- a/docs/src/manpage.md +++ b/docs/src/manpage.md @@ -3689,5 +3689,5 @@ MILLER(1) MILLER(1) - 2023-12-23 MILLER(1) + 2024-01-01 MILLER(1) diff --git a/docs/src/manpage.txt b/docs/src/manpage.txt index 8f6810bf6..fe77c5672 100644 --- a/docs/src/manpage.txt +++ b/docs/src/manpage.txt @@ -3668,4 +3668,4 @@ MILLER(1) MILLER(1) - 2023-12-23 MILLER(1) + 2024-01-01 MILLER(1) diff --git a/man/manpage.txt b/man/manpage.txt index 8f6810bf6..fe77c5672 100644 --- a/man/manpage.txt +++ b/man/manpage.txt @@ -3668,4 +3668,4 @@ MILLER(1) MILLER(1) - 2023-12-23 MILLER(1) + 2024-01-01 MILLER(1) diff --git a/man/mlr.1 b/man/mlr.1 index ae47df883..c6c5c540f 100644 --- a/man/mlr.1 +++ b/man/mlr.1 @@ -2,12 +2,12 @@ .\" Title: mlr .\" Author: [see the "AUTHOR" section] .\" Generator: ./mkman.rb -.\" Date: 2023-12-23 +.\" Date: 2024-01-01 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "MILLER" "1" "2023-12-23" "\ \&" "\ \&" +.TH "MILLER" "1" "2024-01-01" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Portability definitions .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/pkg/mlrval/mlrmap_accessors.go b/pkg/mlrval/mlrmap_accessors.go index 8540ac5dc..0ba61fda5 100644 --- a/pkg/mlrval/mlrmap_accessors.go +++ b/pkg/mlrval/mlrmap_accessors.go @@ -74,7 +74,7 @@ func (mlrmap *Mlrmap) PutReferenceMaybeDedupe(key string, value *Mlrval, dedupe return key, nil } - for i := 2; i < 1000; i++ { + for i := 2; ; i++ { newKey := key + "_" + strconv.Itoa(i) pe := mlrmap.findEntry(newKey) if pe == nil { @@ -82,7 +82,6 @@ func (mlrmap *Mlrmap) PutReferenceMaybeDedupe(key string, value *Mlrval, dedupe return newKey, nil } } - return key, fmt.Errorf("record has too many input fields named \"%s\"", key) } // PutCopy copies the key and value (deep-copying in case the value is array/map).