[jOOQ/jOOQ#11388] java.lang.IllegalStateException: Cannot create a DerivedColumnList from a qualified name

This commit is contained in:
Lukas Eder 2021-02-08 20:28:01 +01:00
parent 0f9f4c348d
commit a6380e0e0f

View File

@ -117,9 +117,6 @@ abstract class AbstractName extends AbstractQueryPart implements Name {
@Override
public final DerivedColumnListImpl fields(Name... fieldNames) {
if (getName().length != 1)
throw new IllegalStateException("Cannot create a DerivedColumnList from a qualified name : " + Arrays.asList(getName()));
return new DerivedColumnListImpl(unqualifiedName(), fieldNames);
}