in reply to Re: DBD::Mock and DBD-specific attributes
in thread DBD::Mock and DBD-specific attributes
Plus, in looking under the hood, DBD::Mock::db::STORE() calls to SUPER::STORE if it doesn't know about the attribute. From what I can discern (and from what I think DBI::DBD says), the attribute and value should be stored in the tied hash.
Now, an interesting possibility to add to DBD::Mock would be an 'is_mocking' attribute in the connection parameters. So, I might want to say something like:
my $dbh = DBI->connect( 'dbi:Mock:is_mocking=mysql', '', '' ) or die $ +DBI::errstr;
And, there would be a DBD::Mock::mysql that would do the right thing with mysql_insertid (or DBD::Mock::Oracle with an ora_* attribute, etc.)
------
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: DBD::Mock and DBD-specific attributes
by tilly (Archbishop) on Aug 16, 2004 at 20:20 UTC | |
by dragonchild (Archbishop) on Aug 17, 2004 at 02:01 UTC | |
Re^3: DBD::Mock and DBD-specific attributes
by stvn (Monsignor) on Aug 16, 2004 at 18:53 UTC | |
by jZed (Prior) on Aug 16, 2004 at 20:37 UTC | |
by dragonchild (Archbishop) on Aug 16, 2004 at 20:04 UTC | |
by stvn (Monsignor) on Aug 17, 2004 at 01:09 UTC | |
by lachoy (Parson) on Aug 17, 2004 at 02:12 UTC | |
Re^3: DBD::Mock and DBD-specific attributes
by jZed (Prior) on Aug 16, 2004 at 18:33 UTC | |
by stvn (Monsignor) on Aug 16, 2004 at 19:47 UTC |