adding some SQLException fields with relevant info of the executed query
This commit is contained in:
@@ -2174,6 +2174,15 @@ class PmDynaform
|
||||
$result['file'] = $e->getFile();
|
||||
$result['line'] = $e->getLine();
|
||||
$result['message'] = $e->getMessage();
|
||||
|
||||
if (property_exists($e, 'nativeError')) {
|
||||
$result['nativeError'] = $e->getNativeError();
|
||||
}
|
||||
|
||||
if (property_exists($e, 'userInfo')) {
|
||||
$result['nativeError'] = $e->getUserInfo();
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user