[Dbix-class] Last stable version of DBIx::Class and DB2 V9.1

Andreas Mock andreas.mock at drumedar.de
Wed Jan 28 17:41:59 GMT 2009


Hi all,

after having problems with the newest development version of DBIx::Class
while running provided tests with DB2 V9.1 I gave the current stable version
a try. But I also get an error while running the tests.

In test script t/745db2.t the statement on line 22
$dbh->do("DROP TABLE artist", { RaiseError => 0, PrintError => 0 });
throws an error:

>-------------------------------------8<------------------------------------------
>t/745db2...................................DBIx::Class::Storage::DBI::__ANON__(): DBI Exception: DBD::DB2::db do failed: [IBM][CLI Driver][DB2/LINUXX8664] >SQL0204N  "DB2BO.ARTIST" is an undefined name.  SQLSTATE=42704
>Can't call method "throw_exception" on an undefined value at /opt/data/install/perl/DBIx-Class-0.08010/blib/lib/DBIx/Class/Storage/DBI.pm line 846.
>END failed--call queue aborted.
-------------------------------------8<------------------------------------------

Two things:
a) The do command is done with RaiseError => 0 and PrintError => 0. Why is an exception
thrown when given these two parameters?

b) If you look at the statement on line 846 of 
./DBIx-Class-0.08010/blib/lib/DBIx/Class/Storage/DBI.pm
you see that something with the error handling code seems not ok. 
Can someone clarify what there is done with the weak_ref?


Best regards
Andreas




More information about the DBIx-Class mailing list