HHH-13266 Mark most databases as not supporting nanosecond-precision storage for timestamps
At least PostgreSQL, Oracle, MySQL and HANA don't support it.
This commit is contained in:
parent
8acdbab275
commit
d0668af5d0
|
@ -26,6 +26,7 @@ import org.hibernate.cfg.AvailableSettings;
|
||||||
import org.hibernate.cfg.Configuration;
|
import org.hibernate.cfg.Configuration;
|
||||||
import org.hibernate.dialect.Dialect;
|
import org.hibernate.dialect.Dialect;
|
||||||
import org.hibernate.dialect.H2Dialect;
|
import org.hibernate.dialect.H2Dialect;
|
||||||
|
import org.hibernate.dialect.Oracle8iDialect;
|
||||||
import org.hibernate.dialect.PostgreSQL81Dialect;
|
import org.hibernate.dialect.PostgreSQL81Dialect;
|
||||||
import org.hibernate.type.descriptor.sql.SqlTypeDescriptor;
|
import org.hibernate.type.descriptor.sql.SqlTypeDescriptor;
|
||||||
|
|
||||||
|
@ -255,8 +256,8 @@ abstract class AbstractJavaTimeTypeTest<T, E> extends BaseCoreFunctionalTestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
protected final boolean isNanosecondPrecisionSupported() {
|
protected final boolean isNanosecondPrecisionSupported() {
|
||||||
// PostgreSQL apparently doesn't support nanosecond precision correctly
|
// Most databases apparently don't support nanosecond precision correctly
|
||||||
return !( dialect instanceof PostgreSQL81Dialect );
|
return dialect instanceof H2Dialect;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected final S add(ZoneId defaultJvmTimeZone, Object ... subClassParameters) {
|
protected final S add(ZoneId defaultJvmTimeZone, Object ... subClassParameters) {
|
||||||
|
|
Loading…
Reference in New Issue