mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-09 21:13:03 +08:00
commit
bd521f5533
@ -36,6 +36,8 @@ public class HSQLDBTemplates extends SQLTemplates {
|
||||
setAutoIncrement(" identity");
|
||||
add(Ops.TRIM, "trim(both from {0})");
|
||||
add(Ops.NEGATE, "{0} * -1", 7);
|
||||
|
||||
add(Ops.NEXTVAL, "next value for {0s}");
|
||||
|
||||
add(Ops.MathOps.ROUND, "round({0},0)");
|
||||
add(Ops.MathOps.LN, "log({0})");
|
||||
|
||||
@ -36,7 +36,7 @@ public final class SQLExpressions {
|
||||
}
|
||||
|
||||
public static final <T extends Number> SimpleExpression<T> nextval(Class<T> type, String sequence) {
|
||||
return SimpleOperation.create(type, SQLTemplates.NEXTVAL, ConstantImpl.create("seq"));
|
||||
return SimpleOperation.create(type, SQLTemplates.NEXTVAL, ConstantImpl.create(sequence));
|
||||
}
|
||||
|
||||
private SQLExpressions() {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user