[jOOQ/jOOQ#13069] Finish support for <rowConvenienceToOne/> in Java

This commit is contained in:
Lukas Eder 2022-02-23 15:01:33 +01:00
parent 7040ad22f2
commit b7401aaaa7
2 changed files with 2 additions and 2 deletions

View File

@ -3754,7 +3754,7 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
return pgNewRecord(ctx, dataType.getType(), (AbstractRow<Record>) dataType.getRow(), ctx.resultSet().getObject(ctx.index()));
default:
if (dataType.isUDT())
if (UDTRecord.class.isAssignableFrom(dataType.getType()))
return localExecuteContext(ctx.executeContext(), () -> (Record) ctx.resultSet().getObject(ctx.index(), typeMap(dataType.getType(), ctx)));
else
return readMultiset(ctx, dataType);

View File

@ -91,7 +91,7 @@ final class RowAsField<ROW extends Row, REC extends Record> extends AbstractRowA
final ROW row;
RowAsField(ROW row) {
this(row, DSL.name("row"));
this(row, DSL.name("r"));
}
RowAsField(ROW row, Name as) {