Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: selectrow_array() confusionby Christoph (Initiate) |
on Apr 15, 2009 at 01:09 UTC ( [id://757523]=note: print w/replies, xml ) | Need Help?? |
"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).
In Section
Seekers of Perl Wisdom
|
|