mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-16082 - Correction to the epoch extraction for HANA
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
parent
3992f722a8
commit
ab860995ef
@ -472,6 +472,8 @@ public String extractPattern(TemporalUnit unit) {
|
||||
return "dayofyear(?2)";
|
||||
case QUARTER:
|
||||
return "((month(?2)+2)/3)";
|
||||
case EPOCH:
|
||||
return "seconds_between('1970-01-01', ?2)";
|
||||
default:
|
||||
//I think week() returns the ISO week number
|
||||
return "?1(?2)";
|
||||
|
Loading…
x
Reference in New Issue
Block a user