Right.
So what you now need to do is to check for errors when preparing and executing your sql statement.
If your code if breaking you are not notified because of the eval block.
Modify the prepare and execute statements to look something like this
my $func = $dbh->prepare(
...
}) or die DBI->errstr;
...
$func->execute or die DBI->errstr;
This will tell you if there is any problem when executing that code, namely if the user that is connecting to the database is granted the required permissions to do what you want it to.
| [reply] [d/l] |
Thanks for your help. I have found the problem, and it is nothing like what I thought it was. The problem lies with uncommitted data in other schemas being ignored by the view, but not by direct access, thus causing the cursor to point to null data, which are then put into the bound variable.
Thanks again.
| [reply] |