Ron Savage schreef: > sub last_insert_id [...] > if ($self -> db_vendor() =~ /(?:mysql|Pg)/)
That regex can be written as /mysql|Pg/. Notice that 'CertainlyNotPgAtAll' matches, so maybe you were looking for /\A(?:mysql|pg)\z/i MySQL's native LAST_INSERT_ID() will return the *first* id from a multi row insert. I don't now what DBI does with that. DBI doc last_insert_id() "For some drivers the $catalog, $schema, $table, and $field parameters are required (e.g., Pg), for others they are ignored (e.g., mysql)." -- Affijn, Ruud "Gewoon is een tijger."