[jOOQ/jOOQ#9945] Support TIMESTAMP(0) in code generator
This commit is contained in:
parent
d9b011c342
commit
903253f2e7
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user