Subject: | Missing execute in docs |
In fetchall_hashref:
$dbh->{FetchHashKeyName} = 'NAME_lc';
$sth = $dbh->prepare("SELECT FOO, BAR, ID, NAME, BAZ FROM TABLE");
$hash_ref = $sth->fetchall_hashref('id');
print "Name for id 42 is $hash_ref->{42}->{name}\n";
That should have an << $sth->execute; >> between the prepare and
the fetchall_hashref.
cheers,
--
Iain.