in reply to Re^3: DBD::Mock and DBD-specific attributes
in thread DBD::Mock and DBD-specific attributes
I went ahead and added this code to my copy and it passed my tests, though you'll probably want to design it a little better than my hackish solution. Specifically, doing a reset on the $dbh should probably delete all the added-on attributes. Plus, I would still like to see a way of mocking a given DBD.
------
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^5: DBD::Mock and DBD-specific attributes
by lachoy (Parson) on Aug 17, 2004 at 02:12 UTC | |
Re^5: DBD::Mock and DBD-specific attributes
by stvn (Monsignor) on Aug 17, 2004 at 01:09 UTC |