HHH-13841 Dialect should make it possible override SqlTypeDescriptor for Types.BLOB
This commit is contained in:
parent
b856d534cb
commit
b4fb2da410
|
@ -116,6 +116,7 @@ import org.hibernate.tool.schema.internal.StandardUniqueKeyExporter;
|
|||
import org.hibernate.tool.schema.spi.Exporter;
|
||||
import org.hibernate.type.StandardBasicTypes;
|
||||
import org.hibernate.type.Type;
|
||||
import org.hibernate.type.descriptor.sql.BlobTypeDescriptor;
|
||||
import org.hibernate.type.descriptor.sql.ClobTypeDescriptor;
|
||||
import org.hibernate.type.descriptor.sql.SqlTypeDescriptor;
|
||||
|
||||
|
@ -504,6 +505,10 @@ public abstract class Dialect implements ConversionContext {
|
|||
descriptor = useInputStreamToInsertBlob() ? ClobTypeDescriptor.STREAM_BINDING : null;
|
||||
break;
|
||||
}
|
||||
case Types.BLOB: {
|
||||
descriptor = useInputStreamToInsertBlob() ? BlobTypeDescriptor.STREAM_BINDING : null;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
descriptor = null;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue