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 abstract class AbstractHANADialect extends Dialect {
|
||||||
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…
Reference in New Issue