HHH-6755: Added BINARY datatype mapping to AbstractTransactSQLDialect (the base class for Sybase and SQL Server dialects)
This commit is contained in:
parent
d12e0c09ae
commit
924770fa09
|
@ -46,6 +46,7 @@ import org.hibernate.type.StandardBasicTypes;
|
|||
abstract class AbstractTransactSQLDialect extends Dialect {
|
||||
public AbstractTransactSQLDialect() {
|
||||
super();
|
||||
registerColumnType( Types.BINARY, "binary($l)" );
|
||||
registerColumnType( Types.BIT, "tinyint" ); //Sybase BIT type does not support null values
|
||||
registerColumnType( Types.BIGINT, "numeric(19,0)" );
|
||||
registerColumnType( Types.SMALLINT, "smallint" );
|
||||
|
|
|
@ -48,7 +48,6 @@ public class SybaseASE15Dialect extends AbstractTransactSQLDialect {
|
|||
registerColumnType( Types.DATE, "date" );
|
||||
registerColumnType( Types.DECIMAL, "numeric($p,$s)" );
|
||||
registerColumnType( Types.TIME, "time" );
|
||||
registerColumnType( Types.BINARY, "binary($l)" );
|
||||
registerColumnType( Types.REAL, "real" );
|
||||
registerColumnType( Types.BOOLEAN, "tinyint" );
|
||||
|
||||
|
|
Loading…
Reference in New Issue