logo       

Re[2]: Fix Warn "Use of uninitialized value in numeric eq (==) at .../DBIx/: msg#00027

Subject: Re[2]: Fix Warn "Use of uninitialized value in numeric eq (==) at .../DBIx/Class/Storage/DBI.pm line 709"
Здравствуйте, Marc.

Вы писали 5 ноября 2007 г., 7:04:55:

MM> * dreel@xxxxx <dreel@xxxxx> [071104 14:20]:
>> On my win32 DBIC always warn at startup with this:
>> Use of uninitialized value in numeric eq (==) at
>> C:/usr/local/site/lib/DBIx/Class/Storage/DBI.pm.
>> 
>> It's strange thing but sub don't take PID at first step that's why I
>> fix it with additional the check:
>> 
>> 704:# handle pid changes correctly
>> 705:#  NOTE: assumes $self->_dbh is a valid $dbh
>> 706: sub _verify_pid {
>> 707:   my ($self) = @_;
>> 708:
>> 709:   return if $self->_conn_pid && $self->_conn_pid == $$; #
>> orig: return if $self->_conn_pid == $$;
>> 710:
>> 711:   $self->_dbh->{InactiveDestroy} = 1;
>> 712:   $self->_dbh(undef);
>> 713:   $self->{_dbh_gen}++;
>> 714:
>> 715:   return;
>> 716: }
>> 
>> DBIC 0.8007

MM> It's been fixed in trunk.  Should be in the next CPAN release.

MM>     -Marc

MM> _______________________________________________
MM> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
MM> IRC: irc.perl.org#dbix-class
MM> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
MM> Searchable Archive:
MM> http://www.grokbase.com/group/dbix-class@xxxxxxxxxxxxxxxxx

Thanks.

-- 
 dreel                          mailto:dreel@xxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe