Skip to content

Commit

Permalink
Oracle NoSQL cloud connection fix to set compartment (#1760)
Browse files Browse the repository at this point in the history
Without this NoSQL instance (driver) from cloud environment should throw
Caused by: oracle.nosql.driver.TableNotFoundException: ..... although table exist in the DB.

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
  • Loading branch information
rfelcman committed Dec 6, 2022
1 parent 61e1d74 commit e2ac8a6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public Connection getConnection(ConnectionSpec spec) throws ResourceException {
//TODO handle all available properties in NoSQLHandleConfig
NoSQLHandleConfig config = new NoSQLHandleConfig(connectionSpec.getEndPoint());
config.setAuthorizationProvider(getAuthorizationProvider(config, connectionSpec));
config.setDefaultCompartment(connectionSpec.getCompartment());

noSQLHandle = NoSQLHandleFactory.createNoSQLHandle(config);
} catch (Exception exception) {
Expand Down

0 comments on commit e2ac8a6

Please sign in to comment.