HHH-16082 - Correction to the epoch extraction for HANA

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2023-02-14 17:49:54 +01:00 committed by Christian Beikov
parent 3992f722a8
commit ab860995ef
1 changed files with 2 additions and 0 deletions

View File

@ -472,6 +472,8 @@ public abstract class AbstractHANADialect extends Dialect {
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)";