[Koha-bugs] [Bug 10478] Do we need a sequential number generator?
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jun 27 09:37:34 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10478
--- Comment #8 from M. Tompsett <mtompset at hotmail.com> ---
(In reply to M. de Rooy from comment #7)
> Looking forward to your code. Could you perhaps extend the generation of
> this number for the combination range, subrange as describe earlier here?
The table is made up of sequence_name and value pairs.
If you want subranges, I suppose you could take the range and subrange together
to form a sequence name.
> Do you plan to add code under Tools or Administration to show this table?
Card numbers don't need it.
> Viewing the values would at least be interesting.
I agree.
> But perhaps initializing a new sequence from a certain number,
Done.
> or resetting a sequence
I have a reset_everything method, which if modified for every sequence known to
mankind as they are added, could potentially be broken out to reset_sequence.
> is probably
> needed too in the long run.. But these functions might need some more
> thought, because they are pretty dangerous too.
If there's a way to calculate the number to use, resetting to that number isn't
so dangerous.
> Note also that there is a direct interest in your code for using it in bug
> 9921 that requires sequence numbers too.
Take a look at my sample test suite and output there.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list