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

Peter Rabbitson rabbit+dbic at rabbit.us
Mon Feb 2 20:38:43 GMT 2009


Andreas Mock wrote:
> 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?
> 

Sorry for the late reply. The ability to pass connection attributes in db handle
calls seems to be DBD dependent, and does not seem to be implemented by DB2. In
any case the test is now fixed[1], and will get into the next official maintenance
release (which *fingercross* should happen in a week or so). The second part of
your question is fixed too[2]. In any case 08010 is still fine to use, all failing
tests are due to defficiences in the tests themselves, not problems with the dbic
library.

Cheers

[1] http://dev.catalyst.perl.org/svnweb/bast/revision/?rev=5402
[2] http://dev.catalyst.perl.org/svnweb/bast/revision/?rev=5367



More information about the DBIx-Class mailing list