From 4be8d2ab4f5a01aabca16fed2122c526ed3934ef Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 7 Feb 2023 14:06:06 +0100 Subject: [PATCH] SonarQube code smells resolve #19 --- Source/API/script/Config/databaseScript.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/API/script/Config/databaseScript.php b/Source/API/script/Config/databaseScript.php index d1cd384..9afac1f 100644 --- a/Source/API/script/Config/databaseScript.php +++ b/Source/API/script/Config/databaseScript.php @@ -109,12 +109,12 @@ ALTER TABLE `Submit` ADD CONSTRAINT `Submit_ibfk_2` FOREIGN KEY (`responsesCandidate`) REFERENCES `ListResponsesOfCandidate` (`id`); COMMIT;'; - $this->con->executeQuery($queryScript); + try { $test = "SELECT * FROM Categorize;"; $this->con->executeQuery($test); - }catch (Exception $e){ + } catch (Exception $e) { echo $e->getMessage(); }