|
To the database, the key is a character field. But it holds data
that may be outside the usual character set. While the collating
sequence is set for *HEX, I wonder if some characters might be
considered equal by the API using the collating sequence.
Positioning the cursor and reading with ReadNextEqual doesn't appear
to be a problem. The reads always start in the right place. Part of
the reason may be that the key is ever increasing, never goes back.
With the 8-byte integer, it won't start over for a couple hundred
years. It's a good suggestion, though. I'll test, but I think I'll
get the same results.
CRPence on Friday, October 19, 2012 2:22 AM wrote:
<<SNIP>>
As for the use of unsigned, AFaIK the database has no support for
unsigned numeric; not integer nor decimal types. A "large"
unsigned provided as an input key could presumably select a
negative value if the type mismatch was not diagnosed.?
Regards, Chuck
On 18 Oct 2012 18:17, Dan Kimmel wrote:
<<SNIP>> The key is defined as eight characters long, CCSID 37,
collating sequence *HEX. The value is an ever incrementing
8-byte unsigned integer. Are there values where, perhaps when the
low order byte is somewhere in the hex 00 to hex 20 range, that
readNextEqual() will consider different values as equal?
<<SNIP>>
As an Amazon Associate we earn from qualifying purchases.
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.