[#5481] ResultImpl#intoMap produces an incorrect error message on duplicate key
This commit is contained in:
parent
5b87623936
commit
4b71f10b33
@ -1313,7 +1313,7 @@ final class ResultImpl<R extends Record> implements Result<R>, AttachableInterna
|
||||
|
||||
for (R record : this)
|
||||
if (map.put((K) record.get(kIndex), (V) record.get(vIndex)) != null)
|
||||
throw new InvalidResultException("Key " + kIndex + " is not unique in Result for " + this);
|
||||
throw new InvalidResultException("Key " + record.get(kIndex) + " is not unique in Result for " + this);
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user