Subject: | DBI does not specify what must return selectrow_hashref if there are no rows and no errors |
ERROR in documentation:
http://search.cpan.org/~timb/DBI-1.604/DBI.pm#selectrow_hashref
When I execute do:
my $data= $context->{dbh}->selectrow_hashref( 'SELECT 1 WHERE false' );
I get 'undef' value in my $data. This is wrong. Here I must get '0E0'
which is true but false
Test case for this situation:
my $data= $context->{dbh}->selectrow_hashref( 'SELECT 1 WHERE false' )
or die $DBI::errstr;
ACTUAL RESULTS: programm died
EXPECTED RESULTS: programm must not die
I am using precompiled DBD::Pg 2.0.0