From 1afc0fbdf8e279ffb3003bf6d92071cfc1a56939 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Thu, 22 Sep 2022 16:36:19 +0100 Subject: [PATCH] Support multiple statements --- packages/server/src/integrations/mysql.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/server/src/integrations/mysql.ts b/packages/server/src/integrations/mysql.ts index 0f236935c8..69dbb40480 100644 --- a/packages/server/src/integrations/mysql.ts +++ b/packages/server/src/integrations/mysql.ts @@ -30,6 +30,7 @@ interface MySQLConfig { ssl?: { [key: string]: any } rejectUnauthorized: boolean typeCast: Function + multipleStatements: boolean } const SCHEMA: Integration = { @@ -136,6 +137,7 @@ class MySQLIntegration extends Sql implements DatasourcePlus { delete config.rejectUnauthorized this.config = { ...config, + multipleStatements: true, typeCast: function (field: any, next: any) { if ( field.type == "DATETIME" ||