HHH-18035 Change Oracle default timestamp precision to 9

This commit is contained in:
Christian Beikov 2024-04-29 20:38:40 +02:00 committed by Steve Ebersole
parent 41be577ffb
commit 356b729c29
3 changed files with 16 additions and 0 deletions

View File

@ -1229,6 +1229,12 @@ public class OracleLegacyDialect extends Dialect {
return getVersion().isSameOrAfter( 12, 2 ) ? 128 : 30; return getVersion().isSameOrAfter( 12, 2 ) ? 128 : 30;
} }
@Override
public int getDefaultTimestampPrecision() {
// 9 is supported at least since v10
return getVersion().isSameOrAfter( 10 ) ? 9 : 6;
}
@Override @Override
public CallableStatementSupport getCallableStatementSupport() { public CallableStatementSupport getCallableStatementSupport() {
// Oracle supports returning cursors // Oracle supports returning cursors

View File

@ -1311,6 +1311,11 @@ public class OracleDialect extends Dialect {
return 128; return 128;
} }
@Override
public int getDefaultTimestampPrecision() {
return 9;
}
@Override @Override
public CallableStatementSupport getCallableStatementSupport() { public CallableStatementSupport getCallableStatementSupport() {
// Oracle supports returning cursors // Oracle supports returning cursors

View File

@ -131,6 +131,11 @@ String isDefault();
* Removed `hibernate.mapping.precedence` and friends * Removed `hibernate.mapping.precedence` and friends
[[ddl-implicit-datatype-timestamp]]
== Default precision for Oracle timestamp
The default precision for Oracle timestamps was changed to 9 i.e. nanosecond precision.
[[todo]] [[todo]]
== Todos (dev) == Todos (dev)