I think I might have found a bug with the new selectrow_hashref feature of
DBI under mod_perl using Apache::DBI.  When I attempt to use 
selectrow_hashref, I get the following error:

Can't locate object method "selectrow_hashref" via package
"Apache::DBI::db"

I was able to get "selectrow_hashref" to work by adding it to the database
session class interface:

--- DBI.pm.orig Mon Apr  2 12:26:53 2001
+++ DBI.pm      Mon Apr  2 12:35:25 2001
@@ -274,6 +274,7 @@
        prepare_cached  => { U =>[2,4,'$statement [, \%attr [, $allow_active ] ]'] },
        selectrow_array => { U =>[2,0,'$statement [, \%attr [, @bind_params ] ]'] },
        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 ] ]'] },
        selectall_hashref=>{ U =>[2,0,'$statement [, \%attr [, @bind_params ] ]'] },
        selectcol_arrayref=>{U =>[2,0,'$statement [, \%attr [, @bind_params ] ]'] },

Reply via email to