[jOOQ/jOOQ#8732] H2: Fix DSL#week() implementation

For H2 the DSL#week() function should be mapped to the ISO_WEEK()
function as EXTRACT(WEEK FROM ...) is equivalent to the WEEK() function.
This commit is contained in:
Knut Wannheden 2019-06-06 10:15:14 +02:00
parent 81fc8c62ae
commit 6dfd51a8ca

View File

@ -342,6 +342,8 @@ final class Extract extends AbstractFunction<Integer> {
case QUARTER:
return DSL.field("{quarter}({0})", INTEGER, field);
case WEEK:
return DSL.field("{iso_week}({0})", INTEGER, field);
default:
return getNativeFunction();