Consultor Eletrônico



Kbase P135641: BASE-64(GENERATE-UUID) does not generate a unique character string.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/2/2008
Status: Unverified

SYMPTOM(s):

BASE-64(GENERATE-UUID) does not generate a unique character string.

FACT(s) (Environment):

Strings are unique over 100 iterations.
Strings are not unique over 1000 iterations.
Duplicate strings have different-case letters.
All Supported Operating Systems
OpenEdge 10.1x

CAUSE:

This is expected behavior. The UUID has a RAW data type. It is a unique string of bits. A UUID can be converted to a visible character form using the BASE-64() function. However, the bits that encode an upper-case character are different than the bits that encode the same character in lower case. Therefore, two different UUIDs might translate into two character strings that differ only in the case of one or more letters.

FIX:

Treat UUID's converted to character strings with BASE-64() as case-sensitive.