Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(pam): remove UNLOCK from implicit commit set, add explicit multipleStatements: false

bernie-g5c26085443d8
diff --git a/backend/src/ee/services/pam-web-access/mysql/pam-mysql-connection-controller.ts b/backend/src/ee/services/pam-web-access/mysql/pam-mysql-connection-controller.ts
index 6b49e5ece7..c7e0194b2e 100644
--- a/backend/src/ee/services/pam-web-access/mysql/pam-mysql-connection-controller.ts
+++ b/backend/src/ee/services/pam-web-access/mysql/pam-mysql-connection-controller.ts
@@ -22,8 +22,7 @@ const IMPLICIT_COMMIT_COMMANDS = new Set([
"RENAME",
"GRANT",
"REVOKE",
- "LOCK",
- "UNLOCK"
+ "LOCK"
]);
export const createMysqlConnectionController = async (params: ControllerParams): Promise<TConnectionController> => {
@@ -36,6 +35,7 @@ export const createMysqlConnectionController = async (params: ControllerParams):
database: database || undefined,
password: "",
connectTimeout: 30_000,
+ multipleStatements: false,
typeCast: (field, next) => {
if (field.type === "JSON") {
return field.string();