Welcome Guest, Not a member yet? Register   Sign In
CI4 - > MySQLI Database -> query return result object even if error
#2

Note I am in production mode thus the DBDebug = false then , thus in theory it should return false based on the logic in mysqli driver

PHP Code:
try
 {
return 
$this->connID->query($this->prepQuery($sql));
}
catch (\
mysqli_sql_exception $e)
{
log_message('error'$e);
if (
$this->DBDebug)
{
throw 
$e;
}
}
return 
false
Reply


Messages In This Thread
RE: CI4 - > MySQLI Database -> query return result object even if error - by johannes - 07-11-2020, 05:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB