[Dbix-class] Can't set DBI::db=HASH(0x8647d64)->{HASH(0x816cc20)}:

Alex Chen jiaming.chen at ehealth-china.com
Sat Feb 11 04:14:53 CET 2006


Dear List,
    I am the beginner of DBIC, I just started my first try with DBIC.I am using Schema approach,I got following annoying problem:
Code snippet:

#!/usr/bin/perl
use My::Schema;
my $dsn="dbi:ODBC:DSN";
my $user="user";
my $password="psw";
my %attrs={AutoCommit=>1};
my $schema = My::Schema->connect( $dsn, $user, $password,\%attrs );
my $rs= $schema->resultset('CustomerFieldTrackExt')->search({Desc_Custom_2=>50846});

while ( my $id = $rs->next){
        print $id->BugID,"\n";
}


Actually  It works ,but it shows some annoying warnings:

Can't set DBI::db=HASH(0x8647d64)->{HASH(0x816cc20)}: unrecognised attribute name or invalid value at /usr/lib/perl5/site_perl/5.8.6/i586-linux-thread-multi/DBI.pm line 667.
Can't get DBI::db=HASH(0x8647d64)->{HASH(0x816cc20)}: unrecognised attribute name at /usr/lib/perl5/site_perl/5.8.6/i586-linux-thread-multi/DBI.pm line 667.
50847
50848
50849
50850
50851
50852
50853
50854
50855

I guess this is something about DBI, rather than DBIC, But I hope someone here could kindly help me out. 

Thanks
Alex Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/dbix-class/attachments/20060211/1d7231aa/attachment.htm


More information about the Dbix-class mailing list