Just a quick DBIx::Recordset question:
say I want to insert a new record.. so i do the ole:
*db_data = DBIx::Recordset -> Insert ({
'!DataSource' => $dbh,
'!Table' => $tablename,
%params,
$primary_key => $self ->
get_id(),});
NOTE: the primary key is a sequence i select out of first for maximum
portability..
now I use an abstraction layer of objects on top of DBIx::Recordset to
represent all my data, and I'd like to repopulate the object with the newly
inserted values (specifically since the table i'm inserting to has several
default values that dont get specified in %params)..
so what i've tried is right after this code:
$self -> fill_with_data(\%db_data);
because %db_data SHOULD hold the record information for the newly inserted
row, however the hash is always empty.. is there a way to do this, without
calling another DBIx::Recordset -> Search?
--
Mike Wojcikiewicz