Skip to content

Commit

Permalink
0006270: Prevented OracleSymmetricDialect from underestimating the cu…
Browse files Browse the repository at this point in the history
…rrent value of a sequence
  • Loading branch information
evan-miller-jumpmind committed Mar 1, 2024
1 parent 79ffcdb commit 93343e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public String getSequenceName(SequenceIdentifier identifier) {

@Override
public long getCurrentSequenceValue(SequenceIdentifier identifier) {
long id = platform.getSqlTemplate().queryForLong("select last_number - cache_size from user_sequences where sequence_name = ?",
long id = platform.getSqlTemplate().queryForLong("select last_number from user_sequences where sequence_name = ?",
getSequenceName(identifier).toUpperCase());
return id < 0 ? 0 : id;
}
Expand Down

0 comments on commit 93343e4

Please sign in to comment.