1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

More db class tweaks

This commit is contained in:
Cameron
2019-02-09 13:07:34 -08:00
parent b471292a36
commit f735292e3f
3 changed files with 11 additions and 6 deletions

View File

@@ -157,4 +157,9 @@
$this->log($log_type, $log_remark, $log_query);
}
public function db_SetErrorReporting($mode)
{
$this->setErrorReporting($mode);
}
}

View File

@@ -26,8 +26,8 @@ class e_db_pdo implements e_db
/** @var PDO */
protected $mySQLaccess;
public $mySQLresult;
public $mySQLrows;
public $mySQLerror = ''; // Error reporting mode - TRUE shows messages
protected $mySQLrows;
protected $mySQLerror = false; // Error reporting mode - TRUE shows messages
protected $mySQLlastErrNum = 0; // Number of last error - now protected, use getLastErrorNumber()
protected $mySQLlastErrText = ''; // Text of last error - now protected, use getLastErrorText()
@@ -48,8 +48,8 @@ class e_db_pdo implements e_db
public $total_results = false; // Total number of results
private $pdo = true; // using PDO or not.
private $pdoBind= false;
private $pdo = true; // using PDO or not.
private $pdoBind = false;
/**
@@ -1539,7 +1539,7 @@ class e_db_pdo implements e_db
* @desc Enter description here...
* @access private
*/
function db_SetErrorReporting($mode)
function setErrorReporting($mode)
{
$this->mySQLerror = $mode;
}

View File

@@ -1765,7 +1765,7 @@ class e_db_mysql
* @desc Enter description here...
* @access private
*/
function db_SetErrorReporting($mode)
public function db_SetErrorReporting($mode)
{
$this->mySQLerror = $mode;
}