pdo_class_wrapper icon indicating copy to clipboard operation
pdo_class_wrapper copied to clipboard

[Feature request] Add more description to debug problems

Open rumplin opened this issue 3 years ago • 0 comments

Hello,

please enhance the self::error calls, to add more details.

I had multiple pdoQuery calls, but I didn't know in which call I have an error. So I changed the pdoQuery method to help me out:

 } catch (PDOException $e) {
        self::error($e->getMessage() . ': ' . __LINE__ . ". SQL: " . $sSql);
 } // end try catch block

Would even help more if I knew where in my original script I had the error - filename and line. Maybe something that can be achieved with $_SERVER["SCRIPT_FILENAME"]

rumplin avatar Apr 06 '21 21:04 rumplin