N°4215 N°3513 Fix DB errors fetch from the wrong object

This commit is contained in:
Pierre Goiffon
2021-09-23 13:55:23 +02:00
parent cfdbc8ae62
commit 88290f9e91

View File

@@ -717,7 +717,7 @@ class CMDBSource
{
$aContext = array('query' => $sSql);
$iMySqlErrorNo = self::$m_oMysqli->errno;
$iMySqlErrorNo = self::GetMySQLiForQuery()->errno;
$aMySqlHasGoneAwayErrorCodes = MySQLHasGoneAwayException::getErrorCodes();
if (in_array($iMySqlErrorNo, $aMySqlHasGoneAwayErrorCodes))
{