add additional DSL#coalesce method for (Field, values)
This commit is contained in:
parent
0549e202a6
commit
ab0a6bdc69
@ -7417,6 +7417,17 @@ public class DSL {
|
||||
return coalesce(Utils.field(value), Utils.fields(values).toArray(new Field[0]));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Oracle-style <code>COALESCE(field, value)</code>
|
||||
* function.
|
||||
*
|
||||
* @see #coalesce(Field, Field...)
|
||||
*/
|
||||
@Support
|
||||
public static <T> Field<T> coalesce(Field<T> field, T value) {
|
||||
return coalesce(field, Utils.field(value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Oracle-style <code>COALESCE(field1, field2, ... , field n)</code>
|
||||
* function.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user