Merge pull request #11082 from Budibase/fix/qa-core-fixes
Further QA-core fixes
This commit is contained in:
commit
d5f43a00c2
|
@ -184,12 +184,13 @@ class SqlServerIntegration extends Sql implements DatasourcePlus {
|
||||||
|
|
||||||
async connect() {
|
async connect() {
|
||||||
try {
|
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 = {
|
const clientCfg: MSSQLConfig & sqlServer.config = {
|
||||||
...this.config,
|
...this.config,
|
||||||
port: +this.config.port,
|
port: +this.config.port,
|
||||||
options: {
|
options: {
|
||||||
encrypt: encrypt,
|
encrypt,
|
||||||
enableArithAbort: true,
|
enableArithAbort: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ import mssql from "../../../../packages/server/src/integrations/microsoftSqlServ
|
||||||
jest.unmock("mssql")
|
jest.unmock("mssql")
|
||||||
|
|
||||||
describe("getExternalSchema", () => {
|
describe("getExternalSchema", () => {
|
||||||
describe("postgres", () => {
|
describe("mssql", () => {
|
||||||
let config: any
|
let config: any
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
|
|
Loading…
Reference in New Issue