Skip Menu |

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 12218
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: Nobody in particular
Requestors: klavins [...] netspace.net.au
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.9006
Fixed in: (no value)



Subject: numfields undef failure in akmisc.t:770
As reported in CPAN Forum DBD-mysql http://www.cpanforum.com/dist/DBD-mysql , in installing DBD::mysql 2.9006 (DBI 1.48, Perl 5.8.4/Mysql 4.0.24_Debian-2-log on Linux/debian, DBI 1.48, Perl 5.8.6, Mysql 4.1.11 on cygwin), I get a 'make test' error at t/akmisc.t line 770: Use of uninitialized value in numeric eq (==) at t/akmisc.t line 770. This line contains: Test($state or ($sth->numfields == 0)) The problem is that 'numfields' has a value of 'undef'. Considering this test has existed for some time, something in the underlying infrastructure has changed to cause 'numfields' not to be defined after the execution of a 'drop table'. In any case, considering that it is possible for 'numfields' to sometimes be 'undef' and not have a numeric value, it seems correct to propose a modification to lib/Mysql/Statement.pm so that this is catered for. Stas Bekman makes just such a proposal in http://lists.mysql.com/perl/3457 . Could the people responsible for DBD::mysql please look at this and make the appropriate modifications so that my installations of DBD::mysql don't fail on t/akmisc.t:770? Thanks Peter K.
This code has been depricated. (old driver emulation code)