[#1087] Change the NTILE function to return Field<Integer> instead of Field<BigDecimal>

This commit is contained in:
Lukas Eder 2012-01-28 16:25:42 +00:00
parent 073725ce0f
commit 9f2e02a8bf

View File

@ -3750,8 +3750,8 @@ public class Factory implements FactoryOperations {
* Sybase.
*/
@Support({ DB2, POSTGRES, ORACLE, SQLSERVER, SYBASE })
public static WindowOverStep<BigDecimal> ntile(int number) {
return new WindowFunction<BigDecimal>("ntile", SQLDataType.NUMERIC, field("" + number, Integer.class));
public static WindowOverStep<Integer> ntile(int number) {
return new WindowFunction<Integer>("ntile", SQLDataType.INTEGER, field("" + number, Integer.class));
}
/**