Bug in sequences - 02-14-2005 , 05:21 PM
first bug: typo in the docs, "init_value" should be "initial_value."
second: i think i've found a bug in the wrapping + caching behavior of
sequences. Create an sequence, set the increasing wrapping flags, set
the range from 0 to 5 and initial value 0.
if the cachevalue is not set, or set to 2, it works fine.
if the cachevalue is set to 5, it wraps at 4.
if the cachevalue is set to 10, it doesn't wrap at all.
it's a little hard to send code because i'm using a lisp interface to
the sleepycat library. it is possible that this is an artifact of my
code but i doubt it.
also i have a hard time setting the initial value if initial_value +
cachesize >= max value (i just get min value.)
not sure how this should be handled but an error or notes in the
documentation would be nice, as opposed to the silent behavior now.
let me know if you want more details, though again my code is all lisp.
take care, B
Re: Bug in sequences - 02-15-2005 , 09:37 PM
midfield (AT) gmail (DOT) com wrote:
You have identified a bug. You can get this to work by making sure the
cachesize is divisible by the range of values specified by your min and
Re: Bug in sequences - 02-17-2005 , 06:12 PM
be safe for me to have a cachesize less than max - min, right?