![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
|
From your example above 0-5 (Range is 6) then set the cachesize to 6. The cachesize should not be larger then the range of values. I tried |
#3
| |||
| |||
|
|
Hi, 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 max. |
![]() |
| Thread Tools | |
| Display Modes | |
| |