Merge branch 'test-oracle' of github.com:Budibase/budibase into test-oracle

This commit is contained in:
mike12345567 2024-07-30 17:54:10 +01:00
commit b470ecc7d9
3 changed files with 6 additions and 1 deletions

View File

@ -209,6 +209,7 @@ class InternalBuilder {
schema.type === FieldType.STRING ||
schema.type === FieldType.LONGFORM ||
schema.type === FieldType.BB_REFERENCE_SINGLE ||
schema.type === FieldType.BB_REFERENCE ||
schema.type === FieldType.OPTIONS ||
schema.type === FieldType.BARCODEQR
) {

View File

@ -406,7 +406,10 @@ class OracleIntegration extends Sql implements DatasourcePlus {
password: this.config.password,
connectString,
}
return await oracledb.getConnection(attributes)
const tz = Intl.DateTimeFormat().resolvedOptions().timeZone
const connection = await oracledb.getConnection(attributes)
await connection.execute(`ALTER SESSION SET TIME_ZONE = '${tz}'`)
return connection
}
async create(query: SqlQuery | string): Promise<any[]> {

View File

@ -28,6 +28,7 @@ import {
import { isExternalTableID } from "../../integrations/utils"
import { helpers } from "@budibase/shared-core"
import { processString } from "@budibase/string-templates"
import { DateTime } from "mssql"
export * from "./utils"
export * from "./attachments"