(02-04-2021, 04:12 PM)InsiteFX Wrote: I just checked the system code and it does return false or it returns the result, for CodeIgniter 4.1.1.
In my case (delete()) this is not true.
I am using 4.1.1 & ENVIRONMENT=production (DBDebug=false)
PHP Code:
$this->db = Database::connect();
$this->db->transBegin();
$this->builder = $this->db->table("SOMETABLE");
$this->builder->where('ID', NULL);
$result = $this->builder->delete();
$result constains:
Code:
CodeIgniter\Database\MySQLi\Result::__set_state(array(
'connID' =>
mysqli::__set_state(array(
'affected_rows' => NULL,
'client_info' => NULL,
'client_version' => NULL,
'connect_errno' => NULL,
'connect_error' => NULL,
'errno' => NULL,
'error' => NULL,
'error_list' => NULL,
'field_count' => NULL,
'host_info' => NULL,
'info' => NULL,
'insert_id' => NULL,
'server_info' => NULL,
'server_version' => NULL,
'stat' => NULL,
'sqlstate' => NULL,
'protocol_version' => NULL,
'thread_id' => NULL,
'warning_count' => NULL,
)),
'resultID' => true,
'resultArray' =>
array (
),
'resultObject' =>
array (
),
'customResultObject' =>
array (
),
'currentRow' => 0,
'numRows' => NULL,
'rowData' => NULL,
));
$this->db->error() contains:
Code:
array (
'code' => 0,
'message' => '',
);