mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 00:55:16 +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)";
|
return "dayofyear(?2)";
|
||||||
case QUARTER:
|
case QUARTER:
|
||||||
return "((month(?2)+2)/3)";
|
return "((month(?2)+2)/3)";
|
||||||
|
case EPOCH:
|
||||||
|
return "seconds_between('1970-01-01', ?2)";
|
||||||
default:
|
default:
|
||||||
//I think week() returns the ISO week number
|
//I think week() returns the ISO week number
|
||||||
return "?1(?2)";
|
return "?1(?2)";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user