I posted this message to the Q&A section, but it seems more appropriate in this section... see additional information below...
I'm using DBI with a MySQL database, and, reading through the documentation, I see the method 'selectcol_arrayref' -- when I try this method, it always returns 'undef'.
Q1: Is this method actually available?
Q2: Is there a way to determine what module is supplying an inherited method? That is, if I want to look at the code for this method, how do I determine where from it's being inherited?
Additional information: when I use selectcol_arrayref (using an SQL statement which evaluates fine in other methods), the DBI::errstr is empty, as is DBI::err -- that is, no error is occuring. However, I'm consistently getting back an 'undef' value, regardless of the query. This leads me to believe that the version of DBI that I'm using (or the MySQL driver) is somehow flawed...
I don't have root access, so I was hoping to trace the origin of this method and look at the code (if it exists -- for all I know, some AUTOLOAD statement is handling my request) -- but I'm not sure how to trace methods like this.
So... anybody know either if A: the selectcol_arrayref method is inactive in certain versions of DBI/its drivers? or B: how I can trace where this method is being originated?
Your gracious wisdom is much appreciated...
In reply to problems with DBI::selectcol_arrayref by christopherbarsuk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |