in reply to Re: selectall_hashref
in thread selectall_hashref

Just tried doing the fetchall_hashref and got this error. "Can't locate object method "fetchall_hashref" via package DBI::st"
Why does this stuff always happen to me?

Replies are listed 'Best First'.
Re^3: selectall_hashref
by McDarren (Abbot) on Jan 05, 2006 at 05:53 UTC
    Which version of DBI do you have?

    From perldoc DBI::Changes, it appears that support for the fetchall_hashref method was added in version 1.20 (August 2001). If you don't have at least this version then you may want to grab the latest version.

    Cheers,
    Darren :)

Re^3: selectall_hashref
by perrin (Chancellor) on Jan 05, 2006 at 05:59 UTC
    What version of DBI do you have?
      I don't know how do I determine it.
        Either find DBI.pm and look at the source or try this on the command line:
        perl -MDBI -e 'print $DBI::VERSION . "\n"'
        perl -MDBI=9999
Re^3: selectall_hashref
by spiritway (Vicar) on Jan 05, 2006 at 07:13 UTC
    Why does this stuff always happen to me?

    Trust me - you're not the only one...