|Subject:||numfields undef failure in akmisc.t:770|
As reported in CPAN Forum 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 . 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.