mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
More db class tweaks
This commit is contained in:
@@ -157,4 +157,9 @@
|
|||||||
$this->log($log_type, $log_remark, $log_query);
|
$this->log($log_type, $log_remark, $log_query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function db_SetErrorReporting($mode)
|
||||||
|
{
|
||||||
|
$this->setErrorReporting($mode);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@@ -26,8 +26,8 @@ class e_db_pdo implements e_db
|
|||||||
/** @var PDO */
|
/** @var PDO */
|
||||||
protected $mySQLaccess;
|
protected $mySQLaccess;
|
||||||
public $mySQLresult;
|
public $mySQLresult;
|
||||||
public $mySQLrows;
|
protected $mySQLrows;
|
||||||
public $mySQLerror = ''; // Error reporting mode - TRUE shows messages
|
protected $mySQLerror = false; // Error reporting mode - TRUE shows messages
|
||||||
|
|
||||||
protected $mySQLlastErrNum = 0; // Number of last error - now protected, use getLastErrorNumber()
|
protected $mySQLlastErrNum = 0; // Number of last error - now protected, use getLastErrorNumber()
|
||||||
protected $mySQLlastErrText = ''; // Text of last error - now protected, use getLastErrorText()
|
protected $mySQLlastErrText = ''; // Text of last error - now protected, use getLastErrorText()
|
||||||
@@ -1539,7 +1539,7 @@ class e_db_pdo implements e_db
|
|||||||
* @desc Enter description here...
|
* @desc Enter description here...
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
function db_SetErrorReporting($mode)
|
function setErrorReporting($mode)
|
||||||
{
|
{
|
||||||
$this->mySQLerror = $mode;
|
$this->mySQLerror = $mode;
|
||||||
}
|
}
|
||||||
|
@@ -1765,7 +1765,7 @@ class e_db_mysql
|
|||||||
* @desc Enter description here...
|
* @desc Enter description here...
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
function db_SetErrorReporting($mode)
|
public function db_SetErrorReporting($mode)
|
||||||
{
|
{
|
||||||
$this->mySQLerror = $mode;
|
$this->mySQLerror = $mode;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user