[jOOQ/jOOQ#9945] Support TIMESTAMP(0) in code generator

This commit is contained in:
Lukas Eder 2020-07-09 17:12:11 +02:00
parent d9b011c342
commit 903253f2e7

View File

@ -7461,7 +7461,7 @@ public class JavaGenerator extends AbstractGenerator {
sb.append(sqlDataTypeRef);
if (dataType.hasPrecision() && p > 0) {
if (dataType.hasPrecision() && (dataType.isTimestamp() || p > 0)) {
// [#6411] Call static method if available, rather than instance method
if (SQLDATATYPE_WITH_PRECISION.contains(literal))