in reply to Re^2: Getting ID of last row inserted into database
in thread Getting ID of last row inserted into database

yes...had some problems with that, but with this parameter combination:
$self->db->dbh->last_insert_id(undef, undef, 'tablename', 'id_name');
SQLite, MySQL 4.0 and PostgreSQL 8.1 all pass my tests. I think SERIAL UNIQUE NOT NULL was also necessary for Pg, but not sure.