I have located one wee deficiency with DBD::mysql.
In dbdimp.c around 1493 (sub dbd_st_fetch) if a mysql_fetch_row call does not
succeed under mysql_use_result it will return a NULL meaning either end of
set or an error has occured. You need to check mysql_errno / mysql_error
first. In fact the docs say that mysql_eof is depricted.
Anywhoo, adding:
dbdimp.c line 1490-ish
imp_sth->currow++;
if (!(cols = mysql_fetch_row(imp_sth->cda))) {
+ D_imp_dbh_from_sth;
+ if (mysql_errno(&imp_dbh->mysql)) {
+ do_error(sth, mysql_errno(&imp_dbh->mysql),
+ mysql_error(&imp_dbh->mysql));
+ }
if (!mysql_eof(imp_sth->cda)) {
D_imp_dbh_from_sth;
was reeeeealy helpful telling me more about my "Mysterious Problem" I've been
trying to hunt down....
It has correctly reported my error and now I can move on and solve THAT
problem! :))
Jay