MySQL Forums
Forum List  »  Perl

selectall_arrayref returns empty Array
Posted by: Dustin Macdonald
Date: November 16, 2011 07:51PM

PLEASE HELP: $dbh->selectall_arrayref is returning an empty array.

But, when I run the same query in mysql it returns a lot of data.

The exact same perl code is running and working on a freebsd server, so I know it is written correctly.

I am just having a problem with $dbh->selectall_arrayref on my development machine.

Other functions like $dbh->prepare work fine and return values.

Is there a way to reset or update functions in mysql 5.5?

I did have a hard time installing DBI & DBD::mysql but I finally got them to install smoothly.

My machine: Mac OS X Snow Leopard, Mysql 5.5, Perl 5.10, DBI 1.616, DBD::mysql 4.020.

Any help would be VERY appreciated.

Options: ReplyQuote

Written By
selectall_arrayref returns empty Array
November 16, 2011 07:51PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.