NYCPHP Meetup

NYPHP.org

[nycphp-talk] PEAR::DB->nextID problems

Daniel Convissor danielc at analysisandsolutions.com
Thu Aug 5 17:29:32 EDT 2004


Sir Mitch:

On Tue, Aug 03, 2004 at 01:51:28PM -0400, Mitch Pirtle wrote:
> 
> Also, do you know if the other relational databases do that too (DB2, 
> Oracle, etc.), or is this a PostgreSQL only thing?

I haven't really paid attention to which DBMS's do what.  I just know that 
it works.  I'm out of town, so can't research it for you further at this 
time.


> As long as you are aware that nextID() will increment the sequence, you 
> are golden.  This is what confused me

Ah.  I'm not sure what in the docs gave you that impression, but I do 
realize that there is nothing in the docs clearly indicating exactly how 
it DOES work.  Before I left, I updated the warning text in the notes 
section of the intro.  See the new text at
http://www.appelsiini.net/~tuupola/php/peardoc2/package.database.db.intro-sequences.html
Also put a link to it on all of the sequence methods's pages.

I'll try to further clarify how things work when I get back.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list