Enforce dialect's default timestamp precision
This commit is contained in:
parent
2cf8131f6e
commit
4292d118ad
|
@ -947,8 +947,15 @@ public abstract class Dialect implements ConversionContext {
|
|||
}
|
||||
|
||||
public String getTypeName(int code) throws HibernateException {
|
||||
switch ( code ) {
|
||||
case Types.TIMESTAMP:
|
||||
case Types.TIMESTAMP_WITH_TIMEZONE:
|
||||
// explicitly enforce dialect's default timestamp precision
|
||||
return getTypeName( code, Size.precision( getDefaultTimestampPrecision() ) );
|
||||
default:
|
||||
return getTypeName( code, Size.nil() );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the name of the database type associated with the given
|
||||
|
|
Loading…
Reference in New Issue