|
62 | 62 | import org.hibernate.sql.exec.spi.JdbcOperation;
|
63 | 63 | import org.hibernate.tool.schema.extract.spi.ColumnTypeInformation;
|
64 | 64 | import org.hibernate.type.JavaObjectType;
|
| 65 | +import org.hibernate.type.descriptor.jdbc.BlobJdbcType; |
| 66 | +import org.hibernate.type.descriptor.jdbc.ClobJdbcType; |
65 | 67 | import org.hibernate.type.descriptor.jdbc.JdbcType;
|
| 68 | +import org.hibernate.type.descriptor.jdbc.NClobJdbcType; |
66 | 69 | import org.hibernate.type.descriptor.jdbc.ObjectNullAsBinaryTypeJdbcType;
|
67 | 70 | import org.hibernate.type.descriptor.jdbc.UUIDJdbcType;
|
68 |
| -import org.hibernate.type.descriptor.jdbc.VarbinaryJdbcType; |
69 |
| -import org.hibernate.type.descriptor.jdbc.VarcharJdbcType; |
70 | 71 | import org.hibernate.type.descriptor.jdbc.spi.JdbcTypeRegistry;
|
71 | 72 | import org.hibernate.type.descriptor.sql.internal.DdlTypeImpl;
|
72 | 73 | import org.hibernate.type.descriptor.sql.internal.NamedNativeEnumDdlTypeImpl;
|
@@ -377,9 +378,9 @@ protected void contributeCockroachTypes(TypeContributions typeContributions, Ser
|
377 | 378 | }
|
378 | 379 |
|
379 | 380 | // Force Blob binding to byte[] for CockroachDB
|
380 |
| - jdbcTypeRegistry.addDescriptor( Types.BLOB, VarbinaryJdbcType.INSTANCE ); |
381 |
| - jdbcTypeRegistry.addDescriptor( Types.CLOB, VarcharJdbcType.INSTANCE ); |
382 |
| - jdbcTypeRegistry.addDescriptor( Types.NCLOB, VarcharJdbcType.INSTANCE ); |
| 381 | + jdbcTypeRegistry.addDescriptor( Types.BLOB, BlobJdbcType.MATERIALIZED ); |
| 382 | + jdbcTypeRegistry.addDescriptor( Types.CLOB, ClobJdbcType.MATERIALIZED ); |
| 383 | + jdbcTypeRegistry.addDescriptor( Types.NCLOB, NClobJdbcType.MATERIALIZED ); |
383 | 384 |
|
384 | 385 | // The next two contributions are the same as for Postgresql
|
385 | 386 | typeContributions.contributeJdbcType( ObjectNullAsBinaryTypeJdbcType.INSTANCE );
|
|
0 commit comments