[jOOQ/jOOQ#12117] ORA-06550 when calling a PL/SQL procedure with a %ROWTYPE parameter that has DATE fields when dateAsTimestamp=true and javaTimeTypes=true

This commit is contained in:
Lukas Eder 2021-07-13 15:55:43 +02:00
parent 40c82e51b7
commit f22489e93e

View File

@ -5076,8 +5076,8 @@ final class Tools {
return;
}
// [#12019] If dateAsTimestamp=true is active, we must declare a DATE instead.
if (type.isTimestamp() && type.getBinding() instanceof DateAsTimestampBinding)
// [#12019] [#12117] If dateAsTimestamp=true is active, we must declare a DATE instead.
if (type.isTimestamp() && (type.getBinding() instanceof DateAsTimestampBinding || type.getBinding() instanceof LocalDateAsLocalDateTimeBinding))
type = SQLDataType.DATE;
String typeName = type.getTypeName(ctx.configuration());