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