in reply to DBD::mysql does not return errorstring

Hi,

You should enable any one of the automatic error checking. Below I have enable warning

PrintError => 1, # To enable warnings RaiseError => 0 # To enable die

If both RaiseError and PrintError are enabled, an error will cause warn( ) and die( ) to be executed sequentially.

Replies are listed 'Best First'.
Re^2: DBD::mysql does not return errorstring
by Skeeve (Parson) on May 12, 2014 at 12:32 UTC

    That does not help as:

    1. I did not want to print diagnostics in my production code but handle the error in my code. Note: The posted code is a small example code. It is not my actual production code.
    2. But even with diagnostics on, there was no error reported.

    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e