[Dbi-interbase-devel] DBIx::Tree [Fwd: Subtle bug]
Status: Beta
Brought to you by:
edpratomo
From: Edwin P. <ed....@co...> - 2000-08-30 12:30:28
|
Good news, DBD::InterBase works with DBIx::Tree. Due to a small bug in DBI.pm, this patch must be applied first. Rgds, Edwin. Edwin Pratomo wrote: > > >From DBI 1.14 doc: > > When passed a hash reference, fetchall_arrayref uses > the fetchrow_hashref entry elsewhere in this > documentto fetch each row as a hash reference. If the > parameter hash is not empty, then it is used as a > slice to select individual columns by name. The names > should be lower case regardless of the letter case in > $sth->{NAME}. The values of the hash should be set to > 1. > > ....... > To fetch all fields of every row as a hash ref: > > $tbl_ary_ref = $sth->fetchall_arrayref({}); > > In reality, when passed an _empty_hash_ref_ as the above snippet, the > column names' letter case depend on the underlying database, in other > words, they are the same as what is stored in $sth->{NAME}. > > Attached is the fix. > > Rgds, > Edwin. > |