I can't find and implement the method Fields as you mentioned, only the
parameters !Fields and $Fields, the latter which I already use. My *set
consists of an array-of-hashes, where the length and content of both the array
and hashes vary from time to time. My goal is to have the same column order in
my table output as in the SELECT statment. As it is now the $fields order
isn't the same as the output column order.
Regards
Marcus
Gerald Richter wrote:
> Hi,
> > How do I succesfully preserve the column order (''$fields'=>
> > $joined_col') in my array-of-hashes generated using DBIx::Recordset?
> > When I run the code below, the column order doesn't differ at all from
> > when I don't 'tie' the %main::set hash.
>
> I don't expect Tie::IxHash to work in the context, because the %set is
> already tied to a DBIx::Recordset::Row class. Use the $set -> Fields method
> to retrieve the field names in the correct order
>
> Gerald
>
> -------------------------------------------------------------
> Gerald Richter ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
>
> Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
> E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
> WWW: http://www.ecos.de Fax: +49 6133 925152
> -------------------------------------------------------------