[CDBI] Re: ANNOUNCE: Ima::DBI 0.35 released

Brad Bowman list at bereft.net
Wed Jun 13 01:09:07 BST 2007

Matt S Trout wrote:
> On Tue, Jun 12, 2007 at 10:12:27PM +1000, Brad Bowman wrote:
>> Matt S Trout wrote:
>>> On Tue, Jun 12, 2007 at 10:07:55AM +1000, Brad Bowman wrote:
>>>> I ended up looking at the prepare_cached handling in Ima::DBI and CDBI
>>>> while trying to work around DBD::SQLite's schema error:
>>>> "DBD::SQLite::db selectrow_array failed: database schema has changed(1)"
>>> I'd love a test case against DBD::SQLite for this.
>> It seems a bit tricky to catch these errors are they're from the
>> bowels of dbdimp.c, eval { } doesn't work.
> Would setting RaiseError change that?

I'd forgotten about RaiseError.  Yes, that makes the test fail nicely.
It doesn't prevent the "database schema has changed" message from
going to stderr, but that shouldn't matter.


  Learning is a good thing.  But more often it leads to mistakes. ...
  For the most part we admire of our own opinions and become fond of arguing.
                                     -- Hagakure http://bereft.net/hagakure/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bsb_schema_change.t
Type: text/troff
Size: 636 bytes
Desc: not available
Url : http://lists.digitalcraftsmen.net/pipermail/classdbi/attachments/20070613/01cc8172/bsb_schema_change.bin

More information about the ClassDBI mailing list