[jOOQ/jOOQ#9442] Don't set START WITH in H2Database

H2 only supports the `START WITH` clause in `CREATE SEQUENCE` (not in
`ALTER SEQUENCE`) and thus only controls the first value ever returned
by the sequence.
This commit is contained in:
Knut Wannheden 2019-11-27 15:23:45 +01:00
parent 791c69a9c7
commit 9c1ea8ab22

View File

@ -419,7 +419,7 @@ public class H2Database extends AbstractDatabase {
name,
type,
null,
record.get(Sequences.MIN_VALUE),
null, // H2 doesn't support Postgres-style START WITH
record.get(Sequences.INCREMENT),
record.get(Sequences.MIN_VALUE),
record.get(Sequences.MAX_VALUE),