[jOOQ/jOOQ#8820] Fix DSL#nextval() for POSTGRES

`DSL#nextval()` and `DSL#currval()` now also work properly if the
sequence has a name which needs to be escaped (e.g. "can't").
This commit is contained in:
Knut Wannheden 2019-06-20 16:06:22 +02:00
parent 59f3aea44d
commit 070bb2cf99

View File

@ -156,11 +156,7 @@ public class SequenceImpl<T extends Number> extends AbstractNamed implements Seq
case POSTGRES: {
ctx.visit(keyword).sql("('").visit(SequenceImpl.this).sql("')");
break;
}
case POSTGRES:
case H2: {
ctx.visit(keyword).sql('(');
SequenceImpl.this.accept0(ctx, true);