http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10454

--- Comment #5 from M. de Rooy <[email protected]> ---
(In reply to comment #4)
> Others have suggested last_insert_id. Is last_insert_id a good option? The
> DBI page has scary things like: "Given all the caveats above, it's clear
> that this method must be used with care." And some of those are ugly caveats.

See bug 10478 and bug 9921.

> I was thinking of generating an ID made of 4 parts which should be unique
> enough:
> 1) 16 character random string (A-Za-z0-9 character options).
> 2) process id padded to 6 digits
> 3) microsecond time padded to 20 digits
> 4) CGISESSID (or a 32 character random string if undefined).

Use a random number generator from cpan?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to