I have this piece of test case in my DBD test code that succeeded in 1.42, but
now fails in 1.43

    ok ($sth->execute, "execute");
    ok ($sth->{NUM_OF_FIELDS}, "NUM_OF_FIELDS");
    eval { my $typo = $sth->{NUM_OFFIELDS_typo} };
    like ($@, qr/attribute/, "attr typo");

Running on AIX-5.2 (a new box) with perl-5.8.5-64int-dor

t/01-base.........ok
t/02-connect......ok
t/03-general......ok 1/16Can't get DBI::st=HASH(0x2022fa80)->{NUM_OFFIELDS_typo}: 
unrecognised attribute at t/03-general.t line 24.
t/03-general......ok 5/16''Use of uninitialized value in print at t/03-general.t line 
25.
#     Failed test (t/03-general.t at line 26)
#                   ''
#     doesn't match '(?-xism:attribute)'
t/03-general......ok 15/16# Looks like you failed 1 tests of 16.

I deduce that the error message is not caught into $@ by the eval anymore

Redo all with DBI-1.42:

t/01-base.........ok
t/02-connect......ok
t/03-general......ok 1/16'Can't get DBI::st=HASH(0x2022d818)->{NUM_OFFIELDS_typo}: 
unrecognised attribute at t/03-general.t line 24.
t/03-general......ok 5/16'Use of uninitialized value in print at t/03-general.t line 
25.

t/03-general......ok

Is that on purpose?

/me has a lot of other problems on this AIX machine to care about right now ...

-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using perl-5.6.1, 5.8.0 & 633 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
     WinNT 4, Win2K pro & WinCE 2.11 often with Tk800.024 &/| DBD-Unify
ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/


Reply via email to