From 96a4b83e31eb794d4bd249b1d7a4ecfe544fc0cf Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Tue, 8 Sep 2015 15:46:09 +0000 Subject: [PATCH] Internal: buggy Exception handlers for some query APIs in CMDBSource SVN:trunk[3734] --- core/cmdbsource.class.inc.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/cmdbsource.class.inc.php b/core/cmdbsource.class.inc.php index cb39809294..8287345d6f 100644 --- a/core/cmdbsource.class.inc.php +++ b/core/cmdbsource.class.inc.php @@ -1,5 +1,5 @@ ComputeStats('Query exec (mySQL)', $sSql); - MySQLException('Failed to issue SQL query', array('query' => $sSql, $e)); + throw new MySQLException('Failed to issue SQL query', array('query' => $sSql, $e)); } $oKPI->ComputeStats('Query exec (mySQL)', $sSql); if ($oResult === false) @@ -368,7 +368,7 @@ class CMDBSource catch(mysqli_sql_exception $e) { $oKPI->ComputeStats('Query exec (mySQL)', $sSql); - MySQLException('Failed to issue SQL query', array('query' => $sSql, $e)); + throw new MySQLException('Failed to issue SQL query', array('query' => $sSql, $e)); } $oKPI->ComputeStats('Query exec (mySQL)', $sSql); if ($oResult === false) @@ -404,7 +404,7 @@ class CMDBSource } catch(mysqli_sql_exception $e) { - MySQLException('Failed to issue SQL query', array('query' => $sSql, $e)); + throw new MySQLException('Failed to issue SQL query', array('query' => $sSql, $e)); } if ($oResult === false) { @@ -430,7 +430,7 @@ class CMDBSource } catch(mysqli_sql_exception $e) { - MySQLException('Failed to issue SQL query', array('query' => $sSql, $e)); + throw new MySQLException('Failed to issue SQL query', array('query' => $sSql, $e)); } if ($oResult === false) {