[jOOQ/jOOQ#10183] Bad record type returned for selectFrom(T) when T contains LEFT SEMI JOIN or LEFT ANTI JOIN

This commit is contained in:
Lukas Eder 2020-05-11 11:43:51 +02:00
parent 3cf7f851d6
commit 97dea87c84

View File

@ -544,6 +544,11 @@ implements
@Override
public final Class<? extends Record> getRecordType() {
// [#10183] The RHS does not contribute to the projection in these cases
if (type == LEFT_SEMI_JOIN || type == LEFT_ANTI_JOIN)
return lhs.getRecordType();
// TODO: [#4695] Calculate the correct Record[B] type
return RecordImplN.class;
}