[jOOQ/jOOQ#9438] Use Sequence#getStartWith() for ALTER SEQUENCE RESTART

If the given `Sequence` has a non-`null` value for `getStartWith()` this
will be used in the `ALTER SEQUENCE ... RESTART` emulation instead of
just `1`.
This commit is contained in:
Knut Wannheden 2019-11-21 10:35:35 +01:00
parent e57125eaa9
commit 0c6fcefd0a

View File

@ -443,6 +443,11 @@ final class AlterSequenceImpl<T extends Number> extends AbstractRowCountQuery im
ctx.sql(' ').visit(K_RESTART);
}
else if (restartWith != null) {