[jOOQ/jOOQ#11815] Change DSLContext.fetchValue(Field<T>) to

DSLContext.fetchValue(SelectField<T>)
This commit is contained in:
Lukas Eder 2021-04-28 22:18:17 +02:00
parent 502f1cbaae
commit 2eb721e576
2 changed files with 2 additions and 2 deletions

View File

@ -12520,7 +12520,7 @@ public interface DSLContext extends Scope {
*/
@Nullable
@Support
<T> T fetchValue(Field<T> field) throws DataAccessException;
<T> T fetchValue(SelectField<T> field) throws DataAccessException;
/**
* Execute a {@link ResultQuery} in the context of this

View File

@ -4665,7 +4665,7 @@ public class DefaultDSLContext extends AbstractScope implements DSLContext, Seri
}
@Override
public <T> T fetchValue(Field<T> field) {
public <T> T fetchValue(SelectField<T> field) {
return field instanceof TableField ? fetchValue((TableField<?, T>) field) : fetchValue(select(field));
}