Skip to content

Commit

Permalink
Initialize platform specific identity sequences for remote entity man…
Browse files Browse the repository at this point in the history
…ager - bugfix

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
  • Loading branch information
rfelcman committed Jan 29, 2025
1 parent 75e8e5d commit c5fb81c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,10 @@ public Object handleException(RuntimeException exception) {
writeDDL(deployProperties, getDatabaseSession(deployProperties), classLoaderToUse);
}
}
// Initialize platform specific identity sequences.
// Initialize platform specific identity sequences plus connect accessor to DB (in case of remote disconnected session).
if (getDatabaseSession().isRemoteSession() && !getDatabaseSession().getAccessor().isConnected()) {
getDatabaseSession().getAccessor().connect(getDatabaseSession().getLogin(), getDatabaseSession());
}
session.getDatasourcePlatform().initIdentitySequences(getDatabaseSession(), MetadataProject.DEFAULT_IDENTITY_GENERATOR);
updateTunerPostDeploy(deployProperties, classLoaderToUse);
this.deployLock.release();
Expand Down

0 comments on commit c5fb81c

Please sign in to comment.