On Wed, Apr 11, 2001 at 08:43:21PM -0500, Mark Stosberg wrote:
> Tim Bunce wrote:
> >
> > On Wed, Apr 11, 2001 at 05:42:03PM -0500, Mark Stosberg wrote:
> > > Tim Bunce wrote:
> > > >
> > > > I suspect you're not really using the version you think you are.
> > > > Add warn $DBI::VERSON to the code.
> > >
> > > I suspected that, too. I verified that it's 1.15. (I ran it in the perl
> > > debugger and printed
> > > $DBI:VERSION like that.
> >
> > Drop the attached file into the 't' subdir of the DBI source tree
> > and run 'make test'. The file has a selectrow_hashref test in it.
> >
> > Tim.,
>
> Thanks Tim.
>
> The output is below (it fails). I reproduced this on a second machine.
Uh. Odd.
> Both are running FreeBSD 4.2 with Postgres 7.0.3 and perl 5.005_03. Are
> there other things I can do to help debug?
Check that the DBI.pm in that directory contains this group of lines:
selectrow_arrayref=>{U =>[2,0,'$statement [, \%attr [, @bind_params ] ]'] },
selectrow_hashref=>{ U =>[2,0,'$statement [, \%attr [, @bind_params ] ]'] },
selectall_arrayref=>{U =>[2,0,'$statement [, \%attr [, @bind_params ] ]'] },
and $DBI::VERSION = "1.15" at the top.
Tim.
> -mark
>
> http://mark.stosberg.com/
>
> ################################
>
> PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
> -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 -e 'use
> Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/basics............ok
> t/dbidrv............ok
> t/examp.............# failed test 30 at line 93
> Can't locate object method "selectrow_hashref" via package "DBI::db" at
> t/examp.t line 215.
> dubious
> Test returned status 2 (wstat 512, 0x200)
> DIED. FAILED tests 30, 76-127
> Failed 53/127 tests, 58.27% okay
> t/meta..............ok
> t/proxy.............skipping test on this platform
> t/shell.............ok
> t/subclass..........ok
> Failed Test Status Wstat Total Fail Failed List of failed
> -------------------------------------------------------------------------------
> t/examp.t 2 512 127 53 41.73% 30, 76-127
> 1 test skipped.
> Failed 1/7 test scripts, 85.71% okay. 53/188 subtests failed, 71.81%
> okay.
> *** Error code 2