Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

miyagawa (1653)

miyagawa
  (email not shown publicly)
http://bulknews.vox.com/
AOL IM: bulknews (Add Buddy, Send Message)

Journal of miyagawa (1653)

Tuesday September 03, 2002
03:41 AM

DBIx::GeneratedKey

[ #7490 ]
DBIx::GeneratedKey - DBD portable way to fetch last inserted object id. Difficult case is Pgsql, which has object id even if there's a primary key on tables. Furthermore, oid can be fetched via $sth, SERIAL can be from SQL, which is sucky I/F for me. link
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I have this functionality working in SPOPS [cpan.org] for sequences in Oracle and PostgreSQL; InterBase GENERATOR (almost exactly like a sequence); MySQL auto-increment; Sybase/MSSQL IDENTITY; SQLite inserted rowid. Fun!