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/