add additional DSL#coalesce method for (Field, values)

This commit is contained in:
Brett Meyer 2015-01-26 11:00:17 -05:00
parent 0549e202a6
commit ab0a6bdc69

View File

@ -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.