1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

Merge pull request #11082 from Budibase/fix/qa-core-fixes

Further QA-core fixes
This commit is contained in:
Michael Drury 2023-06-30 12:42:58 +01:00 committed by GitHub
commit d5f43a00c2
2 changed files with 4 additions and 3 deletions

View file

@ -184,12 +184,13 @@ class SqlServerIntegration extends Sql implements DatasourcePlus {
async connect() {
try {
const encrypt = this.config.encrypt
// if encrypt is undefined, then default is to encrypt
const encrypt = this.config.encrypt === undefined || this.config.encrypt
const clientCfg: MSSQLConfig & sqlServer.config = {
...this.config,
port: +this.config.port,
options: {
encrypt: encrypt,
encrypt,
enableArithAbort: true,
},
}

View file

@ -5,7 +5,7 @@ import mssql from "../../../../packages/server/src/integrations/microsoftSqlServ
jest.unmock("mssql")
describe("getExternalSchema", () => {
describe("postgres", () => {
describe("mssql", () => {
let config: any
beforeAll(async () => {