[jOOQ/jOOQ#11815] Change DSLContext.fetchValue(Field<T>) to
DSLContext.fetchValue(SelectField<T>)
This commit is contained in:
parent
502f1cbaae
commit
2eb721e576
@ -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
|
||||
|
||||
@ -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));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user