Support H2 1.4 & 2.0 in H2SequenceMaxValueIncrementer
Prior to this commit, H2SequenceMaxValueIncrementer only supported H2 database 1.4. This commit updates H2SequenceMaxValueIncrementer's getSequenceQuery() method so that the syntax used supports version 1.4 and 2.0 of the H2 database. This commit also updates several test schemas so that they work with H2 1.4 and 2.0 as well as HSQL. Closes gh-27870
This commit is contained in:
committed by
Sam Brannen
parent
ccf95413ed
commit
ed4e2289cd
@@ -47,7 +47,7 @@ public class H2SequenceMaxValueIncrementer extends AbstractSequenceMaxValueIncre
|
||||
|
||||
@Override
|
||||
protected String getSequenceQuery() {
|
||||
return "select " + getIncrementerName() + ".nextval from dual";
|
||||
return "values next value for " + getIncrementerName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user