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:
parent
a0d02a0660
commit
e4fbe2fc99
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue