[jOOQ/jOOQ#8887] Add SQLDataType.DECIMAL_INTEGER(int) as a shortcut for DataType.precision(int)

This commit is contained in:
Lukas Eder 2019-07-03 10:13:38 +02:00
parent bee81a3933
commit caa9935385

View File

@ -277,6 +277,13 @@ public final class SQLDataType {
*/
public static final DataType<BigInteger> DECIMAL_INTEGER = new DefaultDataType<BigInteger>(null, BigInteger.class, "decimal_integer");
/**
* The zero-scale {@link Types#DECIMAL} type.
*/
public static final DataType<BigInteger> DECIMAL_INTEGER(int precision) {
return DECIMAL_INTEGER.precision(precision);
}
// -------------------------------------------------------------------------
// Unsigned integer types
// -------------------------------------------------------------------------