From 0e12536d7b772c98dcdda6a36f4bda326c4da933 Mon Sep 17 00:00:00 2001 From: pasant9 Date: Mon, 21 Oct 2024 15:38:05 +0530 Subject: [PATCH] Fix SQL parse error --- .../main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java index 6251df27634c..8f05ee88e6b1 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java +++ b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java @@ -14839,7 +14839,7 @@ public String deleteLLMProvider(String organization, String llmProviderId, boole connection.prepareStatement(SQLConstants.DELETE_LLM_PROVIDER_SQL)) { prepStmt.setString(1, organization); prepStmt.setString(2, llmProviderId); - prepStmt.setBoolean(3, builtIn); + prepStmt.setString(3, Boolean.toString(builtIn)); prepStmt.executeUpdate(); connection.commit(); return llmProviderId;