Merge branch 'test-oracle' of github.com:Budibase/budibase into test-oracle
This commit is contained in:
commit
b470ecc7d9
|
@ -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
|
||||
) {
|
||||
|
|
|
@ -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[]> {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue