Fixed some regressions introduced with recent refactorings

This commit is contained in:
Lukas Eder 2014-02-05 15:44:25 +01:00
parent cc0b0a527a
commit 963fb4331e
4 changed files with 3 additions and 5 deletions

View File

@ -825,8 +825,6 @@ xxxxxx xxxxx xxxxxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxx
xxxxx xxx xxxxxxxxxxxxxxxxxxxxx xxxx xxxxxxxxxxx xxxxxxxxx
x
xxxxx

View File

@ -920,7 +920,7 @@ extends BaseTest<A, AP, B, S, B2S, BS, L, X, DATE, BOOL, D, T, U, UU, I, IPK, T7
.mul(tanh(1.0))
.mul(power(coth(1.0), 2).add(0.1));
record = create().select(t1, t2, t3, t4, t6, t7, t8, t9, tb).fetchOne();
record = create().select(t1, t2, t3, t4, t6, t7, t8, t9, ta, tb).fetchOne();
// Rounding issues are circumvented by using substring()
assertNotNull(record);

View File

@ -80,7 +80,7 @@ class Power extends AbstractFunction<BigDecimal> {
return DSL.exp(DSL.ln(arg1).mul(arg2));
default:
return field("{power}({0})", SQLDataType.NUMERIC, getArguments());
return field("{power}({0}, {1})", SQLDataType.NUMERIC, getArguments());
}
}
}

View File

@ -77,7 +77,7 @@ class Sqrt extends AbstractFunction<BigDecimal> {
return DSL.power(argument, 0.5);
default:
return field("sqrt", SQLDataType.NUMERIC, argument);
return field("{sqrt}({0})", SQLDataType.NUMERIC, argument);
}
}
}