http://qs321.pair.com?node_id=383386

dragonchild has asked for the wisdom of the Perl Monks concerning the following question:

I'm using DBD::Mock to simulate a MySQL connection. I'm running into an issue when trying to work with the mysql_insertid DBH attribute. Reading DBI::DBD, DBD/Mock.pm, and (what I can understand of) DBI.pm, I should be able to do the following:
use DBI; my $dbh = DBI->connect( 'dbi:Mock:', '', '' ) or die $DBI::errstr; $dbh->{mysql_insertid} = 10; print $dbh->{mysql_insertid}, $/; ----- 10

Except, mysql_insertid doesn't seem to be getting set, meaning that I am printing undef, not 10. Does anyone more knowledgable in this have any suggestions? (DBI 1.43, DBD::Mock 0.11, Perl 5.8.0, Solaris9)

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested