|
61 | 61 | import org.hibernate.sql.exec.spi.JdbcOperation;
|
62 | 62 | import org.hibernate.tool.schema.extract.spi.ColumnTypeInformation;
|
63 | 63 | import org.hibernate.type.JavaObjectType;
|
| 64 | +import org.hibernate.type.descriptor.jdbc.BlobJdbcType; |
| 65 | +import org.hibernate.type.descriptor.jdbc.ClobJdbcType; |
64 | 66 | import org.hibernate.type.descriptor.jdbc.JdbcType;
|
| 67 | +import org.hibernate.type.descriptor.jdbc.NClobJdbcType; |
65 | 68 | import org.hibernate.type.descriptor.jdbc.ObjectNullAsBinaryTypeJdbcType;
|
66 | 69 | import org.hibernate.type.descriptor.jdbc.UUIDJdbcType;
|
67 |
| -import org.hibernate.type.descriptor.jdbc.VarbinaryJdbcType; |
68 |
| -import org.hibernate.type.descriptor.jdbc.VarcharJdbcType; |
69 | 70 | import org.hibernate.type.descriptor.jdbc.spi.JdbcTypeRegistry;
|
70 | 71 | import org.hibernate.type.descriptor.sql.internal.DdlTypeImpl;
|
71 | 72 | import org.hibernate.type.descriptor.sql.internal.NamedNativeEnumDdlTypeImpl;
|
@@ -394,9 +395,9 @@ protected void contributeCockroachTypes(TypeContributions typeContributions, Ser
|
394 | 395 | }
|
395 | 396 |
|
396 | 397 | // Force Blob binding to byte[] for CockroachDB
|
397 |
| - jdbcTypeRegistry.addDescriptor( Types.BLOB, VarbinaryJdbcType.INSTANCE ); |
398 |
| - jdbcTypeRegistry.addDescriptor( Types.CLOB, VarcharJdbcType.INSTANCE ); |
399 |
| - jdbcTypeRegistry.addDescriptor( Types.NCLOB, VarcharJdbcType.INSTANCE ); |
| 398 | + jdbcTypeRegistry.addDescriptor( Types.BLOB, BlobJdbcType.MATERIALIZED ); |
| 399 | + jdbcTypeRegistry.addDescriptor( Types.CLOB, ClobJdbcType.MATERIALIZED ); |
| 400 | + jdbcTypeRegistry.addDescriptor( Types.NCLOB, NClobJdbcType.MATERIALIZED ); |
400 | 401 |
|
401 | 402 | // The next two contributions are the same as for Postgresql
|
402 | 403 | typeContributions.contributeJdbcType( ObjectNullAsBinaryTypeJdbcType.INSTANCE );
|
|
0 commit comments