From d573eb464ad8a8d6137dd0710de955b1652a3600 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 21 Oct 2021 14:47:35 +0100 Subject: [PATCH] upgrade to mysql2 package --- packages/server/src/integrations/mysql.ts | 2 +- packages/server/src/integrations/tests/mysql.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/integrations/mysql.ts b/packages/server/src/integrations/mysql.ts index c17cca0745..45c0bb6454 100644 --- a/packages/server/src/integrations/mysql.ts +++ b/packages/server/src/integrations/mysql.ts @@ -10,7 +10,7 @@ import { Table, TableSchema } from "../definitions/common" import { getSqlQuery } from "./utils" module MySQLModule { - const mysql = require("mysql") + const mysql = require("mysql2") const Sql = require("./base/sql") const { buildExternalTableId, diff --git a/packages/server/src/integrations/tests/mysql.spec.js b/packages/server/src/integrations/tests/mysql.spec.js index 9582c24a36..47ca3688f0 100644 --- a/packages/server/src/integrations/tests/mysql.spec.js +++ b/packages/server/src/integrations/tests/mysql.spec.js @@ -1,5 +1,5 @@ const MySQLIntegration = require("../mysql") -jest.mock("mysql") +jest.mock("mysql2") class TestConfiguration { constructor(config = { ssl: {} }) {