oracle - using default schema

This commit is contained in:
Jan Prochazka
2024-05-31 15:21:49 +02:00
parent 2723c41832
commit df60d40134
11 changed files with 24 additions and 12 deletions

View File

@@ -57,6 +57,9 @@ const drivers = driverBases.map(driverBase => ({
password,
connectString: useDatabaseUrl ? databaseUrl : port ? `${server}:${port}/${serviceName}` : server,
});
if (database) {
await client.execute(`ALTER SESSION SET CURRENT_SCHEMA = ${database}`);
}
client._schema_name = database;
return client;
},