Skip to content

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

fix(pam): preserve MySQL BIGINT and date values as strings

bernie-gc7d0f36a3485
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 6741eebaec..20e0ff0725 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
@@ -25,6 +25,9 @@ export const createMysqlConnectionController = async (params: ControllerParams):
password: "",
connectTimeout: 30_000,
multipleStatements: false,
+ supportBigNumbers: true,
+ bigNumberStrings: true,
+ dateStrings: true,
typeCast: (field, next) => {
if (field.type === "JSON") {
return field.string();