Skip to content

Commit ab86099

Browse files
jrenaatbeikov
authored andcommitted
HHH-16082 - Correction to the epoch extraction for HANA
Signed-off-by: Jan Schatteman <[email protected]>
1 parent 3992f72 commit ab86099

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@ public String extractPattern(TemporalUnit unit) {
472472
return "dayofyear(?2)";
473473
case QUARTER:
474474
return "((month(?2)+2)/3)";
475+
case EPOCH:
476+
return "seconds_between('1970-01-01', ?2)";
475477
default:
476478
//I think week() returns the ISO week number
477479
return "?1(?2)";

0 commit comments

Comments
 (0)