-
Notifications
You must be signed in to change notification settings - Fork 0
PHP CodeIgniter System Modifications
Hunter Wu edited this page Jan 16, 2019
·
1 revision
- Modify log levels
protected $_levels = array('ERROR' => '1', 'INFO' => '2', 'DEBUG' => '3', 'ALL' => '4');
- Disable save_queries for better performance by default
var $save_queries = FALSE;
- Add SQL_CALC_FOUND_ROWS
//Line 54:
protected $qb_sql_calc_found_rows = FALSE;
//Line 2250:
if ($this->qb_sql_calc_found_rows) {
$sql .= 'SQL_CALC_FOUND_ROWS ';
}
//Line 2710:
'qb_sql_calc_found_rows' => FALSE
//Line 2736:
function sql_calc_found_rows($val = TRUE)
{
$this->qb_sql_calc_found_rows = (is_bool($val)) ? $val : TRUE;
return $this;
}
- Add SQL_CALC_FOUND_ROWS
//Line 31:
var $ar_sql_calc_found_rows = FALSE;
//Line 1690:
if ($this->ar_sql_calc_found_rows) {
$sql .= "SQL_CALC_FOUND_ROWS ";
}
//Line 2017:
'ar_sql_calc_found_rows' => FALSE,
//Line 2047:
function sql_calc_found_rows($val = TRUE)
{
$this->ar_sql_calc_found_rows = (is_bool($val)) ? $val : TRUE;
return $this;
}
- Modify
insert_id()
// Line 330~331
$v = pg_version($this->conn_id);
$v = isset($v['server']) ? $v['server'] : 0; // 'server' key