[Dbix-class] DBI warning annoyance
Marc Mims
marc at questright.com
Wed Oct 17 01:14:45 GMT 2007
* Michael Higgins <linux at evolone.org> [071016 17:10]:
> Use of uninitialized value in numeric eq (==)
> at /usr/lib/perl5/vendor_perl/5.8.8/DBIx/Class/Storage/DBI.pm line 709.
>
> Dutifully, I go to the module:
>
> # handle pid changes correctly
> # NOTE: assumes $self->_dbh is a valid $dbh
> sub _verify_pid {
> my ($self) = @_;
>
> return if $self->_conn_pid == $$; ###### LINE 709
>
> $self->_dbh->{InactiveDestroy} = 1;
> $self->_dbh(undef);
> $self->{_dbh_gen}++;
>
> return;
> }
>
> Can't grasp which of those is uninitialized. $$ should always have a
> value, right?
>
> Doesn't seem to affect anything, but still, I'd like it to go away.
>
> What am I not doing correctly? _conn_pid would be private to the module,
> right? I'm out of ideas already. :(
Fixed in the repository. The warning should go away on the next
release.
-Marc
More information about the DBIx-Class
mailing list