[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:
parent
59f3aea44d
commit
070bb2cf99
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user