I suspect you're not really using the version you think you are.
Add warn $DBI::VERSON to the code.
Tim.
On Wed, Apr 11, 2001 at 04:37:38PM -0500, Mark Stosberg wrote:
>
> Hello,
>
> I'm now using and enjoying the new features of DBI 1.15 (Thanks
> everyone!). I have an odd issue with the new method selectrow_hashref.
>
> When I to use it, I get the error:
> test.cgi: Can't locate object method "selectrow_hashref" via package "DBI
> ::db" at test.cgi line 32,
>
> I've verifed that I'm using the version of DBI I think I am, and that
> the handle is in fact valid. I
> I even double checked to make sure the function existed in the source
> code. :)
>
> Here's a test snippet that fails for me:
>
>
> use DBI;
>
> # a verifed connect string
> $DBH = DBI->connect("dbi:Pg:dbname=my_db;host=m_host.com,'username');
>
> $foo = $DBH->selectrow_hashref("SELECT CURRENT_DATE");
>
> #############
>
> 'selectall_hashref' works fine for me...
>
> Thanks for any ideas!
>
> (I'm using Postgres 7.0.3, by the way)
>
> -mark
>
> personal website } Summersault Website Development
> http://mark.stosberg.com/ { http://www.summersault.com/