[jOOQ/jOOQ#15008] Cannot pass Table reference to row() constructor in

array or list
This commit is contained in:
Lukas Eder 2023-05-03 14:45:16 +02:00
parent 23ef80178f
commit 2a6aa8355e

View File

@ -2074,6 +2074,10 @@ final class Tools {
else if (value instanceof AbstractRow<?> r)
return (Field<T>) r.rf();
// [#15008] Tables can be mixed with values in ROW constructors
else if (value instanceof AbstractTable<?> t)
return (Field<T>) t.tf();
// [#4771] Any other QueryPart type is not supported here
else if (value instanceof QueryPart)
throw fieldExpected(value);