HHH-7716 Added a fallback data type for cases when VARCHAR length is

over
4000
chars.

In such cases the column type will be STRING which is equivalent to
VARCHAR(1,073,741,823).
This commit is contained in:
Esen Sagynov 2012-10-25 11:18:11 -04:00 committed by brmeyer
parent a0d02a0660
commit e4fbe2fc99
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,9 @@ public class CUBRIDDialect extends Dialect {
registerColumnType( Types.TIMESTAMP, "timestamp" );
registerColumnType( Types.TINYINT, "short" );
registerColumnType( Types.VARBINARY, 2000, "bit varying($l)" );
registerColumnType( Types.VARCHAR, 4000, "varchar($l)" );
registerColumnType( Types.VARCHAR, "string" );
registerColumnType( Types.VARCHAR, 2000, "varchar($l)" );
registerColumnType( Types.VARCHAR, 255, "varchar($l)" );
getDefaultProperties().setProperty(Environment.USE_STREAMS_FOR_BINARY, "true");
getDefaultProperties().setProperty(Environment.STATEMENT_BATCH_SIZE, DEFAULT_BATCH_SIZE);