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