in reply to Re: perl dbi - no column headings
in thread perl dbi - no column headings

This is not the same thing. Using fetchrow_hashref does not handle double column names in the query.

Please see Re: Re: Field names from DBI? for more details.

Replies are listed 'Best First'.
Re: Re: Re: perl dbi - no column headings
by hardburn (Abbot) on Jul 09, 2003 at 16:51 UTC

    The SQL above isn't doing any JOINs, so I don't see how double column names would be a problem. Now, fetchrow_hashref() has other problems, but collisions aren't one of them in this (simple) case.

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    Note: All code is untested, unless otherwise stated

      Your query doesn't. But do you know if the original poster's query has one? I don't, and when in doubt I advise for safety.