Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: selectrow_array() confusion

by Christoph (Initiate)
on Apr 15, 2009 at 01:09 UTC ( [id://757523]=note: print w/replies, xml ) Need Help??


in reply to selectrow_array() confusion

"Me too"

This happens to me, too (with DBD::mysql version 4.005, currently). Example:

my($name,$type) = $dbh->selectrow_array("select name,type from
     folders where id=$id") || die $dbh->errstr;

The first value, $name, is fine (correct), the second value ($type) is undefined, even though the select statement works fine from the command line. I've seen it on and off, and I just split it into two queries to solve the problem (but I don't like doing that).

Replies are listed 'Best First'.
Re^2: selectrow_array() confusion
by ikegami (Patriarch) on Apr 15, 2009 at 02:33 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-19 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found