Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: DBI fails to return an error codeby djten (Novice) |
on Oct 09, 2011 at 01:34 UTC ( [id://930400]=note: print w/replies, xml ) | Need Help?? |
I had not tried that before, so I added that in. Then I created an error on purpose in one place in my code (an unknown column name). On my desktop machine, it threw the error to the Perl "software error" handling (bypassing my error display subroutine entirely), and reported: "DBD::mysql::st execute failed: Unknown column 'DCredits' in 'field list'".Exactly right! On my laptop, it still tried to run my error display subroutine, with the error code and string still blank (no difference there), and Perl's "software error" reported: "DBD::mysql::st fetchrow_array failed: fetch() without execute()".Which was not the actual problem, really, so no help there.
In Section
Seekers of Perl Wisdom
|
|