HHH-6755: Added BINARY datatype mapping to AbstractTransactSQLDialect (the base class for Sybase and SQL Server dialects)

This commit is contained in:
John Verhaeg 2011-10-21 11:00:35 -05:00
parent d12e0c09ae
commit 924770fa09
2 changed files with 2 additions and 2 deletions

View File

@ -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" );

View File

@ -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" );