Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: perl dbi - no column headings

by cchampion (Curate)
on Jul 09, 2003 at 16:46 UTC ( [id://272737]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://272737]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-20 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found