[#3541] Change DSLContext.nextval(String) and currval(String) to internally call DSL.sequenceByName() instead of DSL.sequence()
This commit is contained in:
parent
698c499863
commit
7136d47944
@ -45,7 +45,6 @@ import static org.jooq.conf.ParamType.NAMED;
|
||||
import static org.jooq.impl.DSL.field;
|
||||
import static org.jooq.impl.DSL.fieldByName;
|
||||
import static org.jooq.impl.DSL.queryPart;
|
||||
import static org.jooq.impl.DSL.sequence;
|
||||
import static org.jooq.impl.DSL.sequenceByName;
|
||||
import static org.jooq.impl.DSL.tableByName;
|
||||
import static org.jooq.impl.DSL.template;
|
||||
@ -1775,7 +1774,7 @@ public class DefaultDSLContext implements DSLContext, Serializable {
|
||||
|
||||
@Override
|
||||
public BigInteger nextval(String sequence) {
|
||||
return nextval(sequence(sequence));
|
||||
return nextval(sequenceByName(sequence));
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -1786,7 +1785,7 @@ public class DefaultDSLContext implements DSLContext, Serializable {
|
||||
|
||||
@Override
|
||||
public BigInteger currval(String sequence) {
|
||||
return currval(sequence(sequence));
|
||||
return currval(sequenceByName(sequence));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user