× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx 
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Walden 
H. Leverich
Sent: Wednesday, November 08, 2006 3:14 PM
To: Midrange Systems Technical Discussion
Subject: RE: Storing Guids in DB2/400

All the GUID is is a 16 byte number, right?  

There actually is a little logic to it, see
http://en.wikipedia.org/wiki/Globally_Unique_Identifier for 
some of the
details, including having to deal with network byte ordering. 

However, the bigger problem is if I use the char(36) approach then
anything coule be stored in the field, and most of it wouldn't be a
"valid" guid of any kind.

-Walden



From http://www.itu.int/ITU-T/studygroups/com17/oid/X.667-E.pdf

"Apart from determining if the variant bits are set correctly, and that
the Time value used in a time-based UUID is in the future (and therefore
not yet assignable), there is no mechanism for determining if a UUID is
valid in any real sense, as all possible values can otherwise occur."

HTH,


Charles Wilt
--
iSeries Systems Administrator / Developer
Mitsubishi Electric Automotive America
ph: 513-573-4343
fax: 513-398-1121
  


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.