Skip to content
Snippets Groups Projects
Commit 10650675 authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

Ajout des erreurs SQL dans history

parent ca969fd7
No related branches found
No related tags found
No related merge requests found
...@@ -586,9 +586,9 @@ class dbquery extends functions ...@@ -586,9 +586,9 @@ class dbquery extends functions
* SQL Error management * SQL Error management
* *
*/ */
private function error() private function error() {
{
require_once('core' . DIRECTORY_SEPARATOR . 'class' require_once('core' . DIRECTORY_SEPARATOR . 'class'
. DIRECTORY_SEPARATOR . 'class_history.php'); . DIRECTORY_SEPARATOR . 'class_history.php');
$trace = new history(); $trace = new history();
...@@ -644,7 +644,7 @@ class dbquery extends functions ...@@ -644,7 +644,7 @@ class dbquery extends functions
. $this->_debugQuery . '</textarea>'; . $this->_debugQuery . '</textarea>';
exit(); exit();
} }
$trace->add("", 0, "QUERY", "DBERROR", _QUERY_DB_FAILED." : ".$this->_debugQuery, $_SESSION['config']['databasetype'], "database", true, _KO, _LEVEL_ERROR); $trace->add("", 0, "QUERY", "DBERROR", _QUERY_DB_FAILED.": '".$sqlError."' "._QUERY.": [".$this->protect_string_db($this->_debugQuery)."]", $_SESSION['config']['databasetype'], "database", true, _KO, _LEVEL_ERROR);
//exit(); //exit();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment