[eluser]C. Jiménez[/eluser]
your model's method will not return false.
Code:
$sql = "UPDATE notexistingtable SET active = true WHERE id = 123";
$result = $this->db->query($sql);
var_dump($result);
$this->db->query($sql) will return sucess or failure state as bool.
If you want your model's method to return false if query is wrong just handle $result with return.
Code:
$sql = "UPDATE notexistingtable SET active = true WHERE id = 123";
if($this->db->query($sql) !== FALSE)
{
//what to do when isn't wrong.
return TRUE;
}
return FALSE;
[/code]