Skip Menu |

This queue is for tickets about the DBIx-RunSQL CPAN distribution.

Report information
The Basics
Id: 114647
Status: resolved
Priority: 0/
Queue: DBIx-RunSQL

People
Owner: Nobody in particular
Requestors: bgkriegel [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Warnings on CREATE
Hi, I have a lot of warnings like: Use of uninitialized value in numeric lt (<) at /usr/local/share/perl/5.18.2/DBIx/RunSQL.pm line 261 You are doing the following test } elsif( 0 < $sth->{NUM_OF_FIELDS} ) { but $sth->{NUM_OF_FIELDS} could be 'undef' in case of create or delete, and that produce the warning. Could you consider adding and additional test? } elsif( $sth->{NUM_OF_FIELDS} and 0 < $sth->{NUM_OF_FIELDS} ) { With that change all warnings vanish. We are about to use this module in Koha project[1], and this behavior produces a lot of noise in the logs at install time. Best regards, Bernardo [1]https://koha-community.org/
Thanks for the report! This should be fixed in 0.14, now on its way to CPAN. -max