Forum OpenACS Q&A: Re: duplicate key problem creating new users

Collapse
Posted by Simon at TCB on
Or maybe we should consider a general rule whereby pages don't assigned new ids unless they are the same page thats going to do a database insert?

Ok that may mean wasting numbers from object_id_seq, but that hardly a big deal given that it'd take several lifetimes to run out of numebrs.

And also perhaps __new functions should, when approriate, generate a new id when there's conflict? Bit more case by case this one, but many __new's already do it, and as many don't. Is a general rule required?