[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:
parent
81fc8c62ae
commit
6dfd51a8ca
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user