On Fri, Jan 09, 2004 at 01:07:18PM -0600, Daniel S. Lewart wrote: > DBI Developers, > > > Speak before you patch > > I would like to extend DBI's fetchall_hashref and selectall_hashref > methods to handle multiple keys. Being new to DBI, I miss Michael Peppler's > Sybperl::Simple's useful HashOfHashOfHash method. The following are > my proposed new syntaxes: > > $sth->fetchall_hashref(@key_field); > $dbh->selectall_hashref($statement, [EMAIL PROTECTED] [, \%attr[, @bind_values]]);
I'd accept a patch that allows the $key_field parameter of fetchall_hashref() (and thus selectall_hashref) to be either a string, as now, or an array ref. The patch should: - only affect fetchall_hashref() - do my @key_fields = (ref $key_field) ? @$key_field : ($key_field); - work for _any_ number of elements in key_fields - include tests > I would appreciate any comments. Thanks! Tim.
