HHH-15814 add methods for current time selection to CockroachDB Dialect

This commit is contained in:
Karel Maesen 2022-12-05 15:47:43 +01:00 committed by Christian Beikov
parent 7dff19795f
commit c8723d3f14
1 changed files with 15 additions and 0 deletions

View File

@ -429,6 +429,21 @@ public class CockroachDialect extends Dialect {
return " cascade";
}
@Override
public boolean supportsCurrentTimestampSelection() {
return true;
}
@Override
public boolean isCurrentTimestampSelectStringCallable() {
return false;
}
@Override
public String getCurrentTimestampSelectString() {
return "select now()";
}
@Override
public boolean supportsDistinctFromPredicate() {
return true;