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

This commit is contained in:
Lukas Eder 2021-07-01 15:38:17 +02:00
parent ae30587897
commit 0680d7e41f

View File

@ -5043,6 +5043,10 @@ final class Tools {
return;
}
// [#12019] If dateAsTimestamp=true is active, we must declare a DATE instead.
if (type.isTimestamp() && type.getBinding() instanceof DateAsTimestampBinding)
type = SQLDataType.DATE;
String typeName = type.getTypeName(ctx.configuration());
// [#8070] Make sure VARCHAR(n) ARRAY types are generated as such in HSQLDB